Browse Source

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 <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>
3.16.x
Kyle Hall 10 years ago
committed by Galen Charlton
parent
commit
1226f901ce
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js

2
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);
});
});

Loading…
Cancel
Save