Koha/koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js
Jonathan Druart c4978ef178 Bug 10310: Followup Prevent submitting form with enter does not work with IE
Check e.target.type instead of using jQuery.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-05-23 07:32:50 -07:00

11 lines
271 B
JavaScript

$(document).ready(function() {
// We don't want to apply this for the search form
$("#doc3 form").keypress(function (e) {
if( e.which == 13
&& e.target.nodeName == "INPUT"
&& e.target.type != "submit"
) {
return false;
}
});
});