Commits

Jens Diemer committed 0e5adf0

Bugfix in JS: Reset onbeforeunload event while edit a existing post, too.

Comments (0)

Files changed (1)

djangobb_forum/static/djangobb_forum/js/markup/bbcode/board.js

         }
         // if nothing returned, browser leave the page without any message
     };
-    $("form#post").bind("submit", function() {
+    $("form input[type=submit]").click(function() {
         //log("unbind onbeforeunload");
         window.onbeforeunload = null;
     });