]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
jquery 2.x update related fix (.die no longer defined)
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Sep 2013 11:41:04 +0000 (13:41 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Sep 2013 11:41:04 +0000 (13:41 +0200)
plugins/Bookmark/js/bookmark.js

index 59cca8e5e3b3b009b9470428bddabcd32dcb86a0..f86266133dd35c38844d22f52d760ddef48c7868 100644 (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;