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>
(cherry picked from commit 1226f901ce)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Kyle M Hall 2014-02-26 12:51:11 -05:00 committed by Fridolin Somers
parent bbe90f9000
commit a489bf50f2
1 changed files with 1 additions and 1 deletions

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