Bugzilla – Attachment 91850 Details for
Bug 23385
Hide default value fields by default on patron import
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23385: (follow-up) Update link
Bug-23385-follow-up-Update-link.patch (text/plain), 1.92 KB, created by
Owen Leonard
on 2019-07-29 13:03:49 UTC
(
hide
)
Description:
Bug 23385: (follow-up) Update link
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-07-29 13:03:49 UTC
Size:
1.92 KB
patch
obsolete
>From 9b92880d6a4c248a061eeb185726071fc8153e0a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 29 Jul 2019 12:57:21 +0000 >Subject: [PATCH] Bug 23385: (follow-up) Update link > >This follow-up adds a dummy href attribute to the link for showing and >hiding the default values form so that it behaves more like a link. > >I removed "click to" from the link text and added Font Awesome icons >common to "show/hide" links. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >index 02420a9b89c..712dfe4927e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >@@ -160,8 +160,8 @@ > > <fieldset class="rows"> > <legend> >- <a class="expand_defaults">Click to enter default values</a> >- <a class="expand_defaults" style="display:none;">Hide default value fields</a> >+ <a href="#" class="expand_defaults"><i class="fa fa-plus-square"></i> Enter default values</a> >+ <a href="#" class="expand_defaults" style="display:none;"><i class="fa fa-minus-square"></i> Hide default value fields</a> > </legend> > > <ol class="default_values" style="display:none;"> >@@ -307,7 +307,8 @@ you can supply dates in ISO format (e.g., '2010-10-28'). > [%# Make date fields have the datepicker %] > $("#dateenrolled, #dateexpiry, #dateofbirth").datepicker(); > >- $(".expand_defaults").click(function(){ >+ $(".expand_defaults").click(function(e){ >+ e.preventDefault(); > $(".default_values").toggle(); > $(".expand_defaults").toggle(); > }); >-- >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 23385
:
91813
|
91838
|
91850
|
91859
|
91860
|
92094