Bugzilla – Attachment 86205 Details for
Bug 15911
Use noEnterSubmit CSS class instead of prevent_submit.js
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15911: (follow-up) Allow enter to submit using the submit button
Bug-15911-follow-up-Allow-enter-to-submit-using-th.patch (text/plain), 1.32 KB, created by
Owen Leonard
on 2019-03-06 18:44:36 UTC
(
hide
)
Description:
Bug 15911: (follow-up) Allow enter to submit using the submit button
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-03-06 18:44:36 UTC
Size:
1.32 KB
patch
obsolete
>From f01713f857dc3e37fe631a07db2fb62db19ee1eb Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 6 Mar 2019 18:41:12 +0000 >Subject: [PATCH] Bug 15911: (follow-up) Allow enter to submit using the submit > button > >This patch modifies the checkEnter function so that it is possible to >submit a form by tabbing to the submit button and hitting ENTER to >submit. >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index b60af5e..7c60ac5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -128,8 +128,10 @@ function checkEnter(e){ //e is event object passed from function invocation > } else { > characterCode = e.keyCode; //character code is contained in IE's keyCode property > } >- >- if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key) >+ if( characterCode == 13 //if generated character code is equal to ascii 13 (if enter key) >+ && e.target.nodeName == "INPUT" >+ && e.target.type != "submit" // Allow enter to submit using the submit button >+ ){ > return false; > } else { > return true; >-- >2.1.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 15911
:
85539
|
86046
|
86205
|
86412
|
86413