Bug 11563: (follow-up) change .live() to .on()
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 26 Feb 2014 17:51:11 +0000 (12:51 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 11 Apr 2014 18:04:35 +0000 (18:04 +0000)
The jquery event handler .live() has been deprecated. It is recommended
that .on() be used instead.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js

index a89e273..ec87127 100644 (file)
@@ -25,7 +25,7 @@ function _(s) { return s; } // dummy function for gettext
         return false;
     });
 
-    $('.noEnterSubmit').live("keypress", function(e){
+    $("body").on("keypress", ".noEnterSubmit", function(e){
         return checkEnter(e);
     });
 });