From 5cea7144bc50477f8518ae47e78282de287c1a23 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 (cherry picked from commit c4978ef178746df06333c6704ea9e6f888b4b9ff) Signed-off-by: Tomas Cohen Arazi --- 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