From 38589e58da5f0d6c57657667b29ccd1189167fe4 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 Content-Type: text/plain; charset=utf-8 Check e.target.type instead of using jQuery. Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/js/prevent_submit.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 2e6d385..8ca0def 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; } -- 1.7.7.6