Fixed regression in bookmark.js that caused double-submits (jquery 2.x stuff)

In 6de3fc0217 bookmark.js was patched to
jquery 2.x (removed '.die' call) but unfortunately the 'submit' event
was attached to an input element instead of a form element (which got
a 'click' event).
This commit is contained in:
Mikael Nordfeldth 2013-09-23 12:07:37 +02:00
parent 50e611a1a9
commit f711f9ee75
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ var Bookmark = {
$(document).ready(function() {
// Stop normal live event stuff
$(document).off("click", "form.ajax");
$(document).off("submit", "form.ajax input[type=submit]");
$(document).off("submit", "form.ajax");
$(document).off("click", "form.ajax input[type=submit]");
// Make the bookmark submit super special
$(document).on('submit', '#form_initial_bookmark', function (e) {