Bugzilla – Attachment 48251 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]
Bug 15863: Show/hide date range selection if not needed - dictionnary
Bug-15863-Showhide-date-range-selection-if-not-nee.patch (text/plain), 1.67 KB, created by
Jonathan Druart
on 2016-02-19 16:15:58 UTC
(
hide
)
Description:
Bug 15863: Show/hide date range selection if not needed - dictionnary
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-02-19 16:15:58 UTC
Size:
1.67 KB
patch
obsolete
>From b7c48b67594e0d4474e301167c0d3c9de7b82fc8 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] Bug 15863: Show/hide date range selection if not needed - > dictionnary > >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. >--- > 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 c21af0d..bab8397 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' %] >-- >2.7.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 15863
:
48251
|
48252
|
49826