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() { $(document).ready(function() {
// Stop normal live event stuff // Stop normal live event stuff
$('form.ajax').die(); $(document).off("click", "form.ajax");
$('form.ajax input[type=submit]').die(); $(document).off("submit", "form.ajax input[type=submit]");
// Make the bookmark submit super special // Make the bookmark submit super special
$('#form_initial_bookmark').bind('submit', function(e) { $(document).on('submit', '#form_initial_bookmark', function (e) {
Bookmark.BookmarkXHR($(this)); Bookmark.BookmarkXHR($(this));
e.stopPropagation(); e.stopPropagation();
return false; return false;