Bugzilla – Attachment 49826 Details for
Bug 15863
When creating a dictionary for date column, date range selection should be hidden if all dates is selected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 15863: Show/hide date range selection if not needed - dictionnary
PASSED-QA-Bug-15863-Showhide-date-range-selection-.patch (text/plain), 1.89 KB, created by
Katrin Fischer
on 2016-04-03 15:01:17 UTC
(
hide
)
Description:
[PASSED QA] Bug 15863: Show/hide date range selection if not needed - dictionnary
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-04-03 15:01:17 UTC
Size:
1.89 KB
patch
obsolete
>From 1855e4304e6c9b1701600f3f84c8eab9ea1efb95 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 19 Feb 2016 16:13:50 +0000 >Subject: [PATCH] [PASSED QA] Bug 15863: Show/hide date range selection if not > needed - dictionnary >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When creating a dictionary for a date column, there is a "date range" / >"all dates" radio buttons and 2 inputs to select the date range. These >inputs should be hidden if "all dates" is selected. > >Test plan: >1/ Create a new dictionary on reports/dictionary.pl >2/ Select a date column (borrowers.dateofbirth of instance) >3/ On step 4, the start/end of the date range inputs should be >hidden/shown depending of the radio buttons. > >Works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >index 9b9bbcf..4f07c45 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >@@ -3,6 +3,17 @@ > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] > <style type="text/css">fieldset.rows table { clear: none; margin: 0;}</style> >+<script type="text/javascript"> >+ $(document).ready(function() { >+ $("#date_range").change(function(){ >+ $("input#from").parents('li').show(); >+ }); >+ $("#all_dates").change(function(){ >+ $("input#from").parents('li').hide(); >+ }); >+ $("#all_dates").click().change(); >+ }); >+</script> > </head> > <body id="rep_dictionary" class="rep"> > [% INCLUDE 'header.inc' %] >-- >1.9.1
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 15863
:
48251
|
48252
| 49826