From 6de3fc02173017f6fb46e8e86c87228c3d7237a0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 14 Sep 2013 13:41:04 +0200 Subject: [PATCH] jquery 2.x update related fix (.die no longer defined) --- plugins/Bookmark/js/bookmark.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Bookmark/js/bookmark.js b/plugins/Bookmark/js/bookmark.js index 59cca8e5e3..f86266133d 100644 --- a/plugins/Bookmark/js/bookmark.js +++ b/plugins/Bookmark/js/bookmark.js @@ -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;