From 1226f901cef989915ee68e7ac7d1b1acf9fba91c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 26 Feb 2014 12:51:11 -0500 Subject: [PATCH] Bug 11563: (follow-up) change .live() to .on() The jquery event handler .live() has been deprecated. It is recommended that .on() be used instead. Signed-off-by: Jonathan Druart Signed-off-by: Christopher Brannon Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js index a89e273242..ec8712732f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -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); }); }); -- 2.39.5