jquery 2.x update related fix (.die no longer defined)

This commit is contained in:
Mikael Nordfeldth 2013-09-14 13:41:04 +02:00
parent 11f43637b2
commit 6de3fc0217

View File

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