Bugzilla – Attachment 137601 Details for
Bug 31132
Add button to clear the cataloguing authority plugin form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31132: (follow-up) Reset dropdown values and style button
Bug-31132-follow-up-Reset-dropdown-values-and-styl.patch (text/plain), 2.81 KB, created by
Aleisha Amohia
on 2022-07-12 04:50:48 UTC
(
hide
)
Description:
Bug 31132: (follow-up) Reset dropdown values and style button
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2022-07-12 04:50:48 UTC
Size:
2.81 KB
patch
obsolete
>From 0495089783e7b69622df6beebc2faa82c3c00c04 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 12 Jul 2022 16:48:44 +1200 >Subject: [PATCH] Bug 31132: (follow-up) Reset dropdown values and style button > >This follow-up patch resets the dropdown values of the form alongside >the text inputs. It styles the button to look like a link so it doesn't >distract the user and get 'accidentally' clicked when attempting to >submit. >--- > .../intranet-tmpl/prog/en/includes/auth-finder-search.inc | 2 +- > .../intranet-tmpl/prog/en/modules/authorities/auth_finder.tt | 11 +++++++++++ > koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js | 5 ++++- > 3 files changed, 16 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >index befdbae8c0..11f0841ae0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >@@ -158,6 +158,6 @@ > </ol> > </fieldset> > [% END %] >- <fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <a id="clear-form" href="#" class="btn btn-link">Clear form</a> <a id="cancel" class="cancel close" href="#">Cancel</a> >+ <fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <input type="reset" id="clear-form" value="Clear form"> <a id="cancel" class="cancel close" href="#">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >index 14d5b8db3c..b1ac1b538f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >@@ -4,6 +4,17 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Cataloging authority plugin › Koha</title> > [% INCLUDE 'doc-head-close.inc' %] >+<style> >+#clear-form { >+ border:0; >+ background:none; >+ color:#004d99; >+ padding-left:1em; >+} >+#clear-form:hover { >+ color:#538200; >+} >+</style> > </head> > > <body id="auth_auth_finder" class="auth"> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >index 9144b979bf..e439c8bbfc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >@@ -94,7 +94,10 @@ $(document).ready(function(){ > minLength: 3, > }); > $("#clear-form").click(function(){ >- $(":input[type='text']").val(''); >+ setTimeout(function(){ >+ $(":input[type='text']").val(''); >+ }, 50); >+ return true; > }); > }); > >-- >2.11.0
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 31132
:
137595
|
137596
|
137601
|
138069
|
150696
|
150697
|
150814
|
150815