From c4978ef178746df06333c6704ea9e6f888b4b9ff Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 23 May 2013 09:33:48 +0200 Subject: [PATCH] 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 Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js b/koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js index 2e6d385f97..8ca0def535 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js @@ -3,7 +3,7 @@ $(document).ready(function() { $("#doc3 form").keypress(function (e) { if( e.which == 13 && e.target.nodeName == "INPUT" - && $(e.target).attr('type') != "submit" + && e.target.type != "submit" ) { return false; } -- 2.39.5