Bugzilla – Attachment 18326 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), 980 bytes, created by
Jonathan Druart
on 2013-05-23 07:40:50 UTC
(
hide
)
Description:
Bug 10310: Followup Prevent submitting form with enter does not work with IE
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-05-23 07:40:50 UTC
Size:
980 bytes
patch
obsolete
>From 02be298c651290644447bfec03fa98aeae528390 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 > >Check e.target.type instead of using jQuery. >--- > 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 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.10.4
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