From 67028b14a86ce948f479da122565ce862072d757 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 26 Feb 2014 12:51:11 -0500 Subject: [PATCH] Bug 11563 [QA Followup] - 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 --- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 2bc8424..61a4153 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); }); }); @@ -91,4 +91,4 @@ function toUC(f) { var x=f.value.toUpperCase(); f.value=x; return true; -} \ No newline at end of file +} -- 1.7.2.5