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:
parent
50e611a1a9
commit
f711f9ee75
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user