Bugzilla – Attachment 18330 Details for
Bug 10310
Prevent submit form pressing enter should be improved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10310: Followup Prevent submitting form with enter does not work with IE
Bug-10310-Followup-Prevent-submitting-form-with-en.patch (text/plain), 1.05 KB, created by
Marcel de Rooy
on 2013-05-23 08:17:14 UTC
(
hide
)
Description:
Bug 10310: Followup Prevent submitting form with enter does not work with IE
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-05-23 08:17:14 UTC
Size:
1.05 KB
patch
obsolete
>From 38589e58da5f0d6c57657667b29ccd1189167fe4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >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 <m.de.rooy@rijksmuseum.nl> >--- > .../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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10310
:
18314
|
18316
|
18317
|
18324
|
18326
|
18329
| 18330