From a489bf50f22ff664a73a1b795a76aa5e837b4e3e 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 (cherry picked from commit 1226f901cef989915ee68e7ac7d1b1acf9fba91c) Signed-off-by: Fridolin Somers --- 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 de0ec5b96d..aa08447a5f 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