Bugzilla – Attachment 18681 Details for
Bug 10396
Catalog stats shows calendar in callnumber field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10396 : Because of "From" and "to" input field on callnumber, a datepicker is forced on those fields.
SIGNED-OFF-Bug-10396--Because-of-From-and-to-input.patch (text/plain), 3.40 KB, created by
Owen Leonard
on 2013-06-05 15:27:41 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10396 : Because of "From" and "to" input field on callnumber, a datepicker is forced on those fields.
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-06-05 15:27:41 UTC
Size:
3.40 KB
patch
obsolete
>From ff6210b8e2ec25849bffd5c4925f80c2a764382c Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Mon, 3 Jun 2013 15:24:06 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 10396 : Because of "From" and "to" input > field on callnumber, a datepicker is forced on those > fields. >Content-Type: text/plain; charset="utf-8" > >This bug was introduced by bug 8181. >The patch removes the datepicker function on "from" and "to" inputs >and adds a datepicker class where needed has described in Bug 8181 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/reports/catalogue_stats.tt | 35 +------------------- > 1 file changed, 1 insertion(+), 34 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >index e1fc987..73f09ab 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >@@ -2,39 +2,6 @@ > <title>Koha › Reports [% IF ( do_it ) %]› Catalog statistics › Results[% ELSE %]› Catalog statistics[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >-<script type="text/javascript"> >-//<![CDATA[ >- $(document).ready(function() { >- // http://jqueryui.com/demos/datepicker/#date-range >- var dates = $( "#from, #to" ).datepicker({ >- changeMonth: true, >- numberOfMonths: 1, >- onSelect: function( selectedDate ) { >- var option = this.id == "from" ? "minDate" : "maxDate", >- instance = $( this ).data( "datepicker" ); >- date = $.datepicker.parseDate( >- instance.settings.dateFormat || >- $.datepicker._defaults.dateFormat, >- selectedDate, instance.settings ); >- dates.not( this ).datepicker( "option", option, date ); >- } >- }); >- var datesRO = $( "#fromRO, #toRO" ).datepicker({ >- changeMonth: true, >- numberOfMonths: 1, >- onSelect: function( selectedDate ) { >- var option = this.id == "fromRO" ? "minDate" : "maxDate", >- instance = $( this ).data( "datepicker" ); >- date = $.datepicker.parseDate( >- instance.settings.dateFormat || >- $.datepicker._defaults.dateFormat, >- selectedDate, instance.settings ); >- datesRO.not( this ).datepicker( "option", option, date ); >- } >- }); >- }); >-//]]> >-</script> > </head> > <body id="rep_catalogue_stats" class="rep"> > [% INCLUDE 'header.inc' %] >@@ -182,7 +149,7 @@ > <td>Publication year</td> > <td><input type="radio" name="Line" value="publicationyear" /></td> > <td><input type="radio" name="Column" value="publicationyear" /></td> >- <td><label for="fromRO">From</label> <input type="text" name="Filter" id="fromRO" /> <label for="toRO">To</label> <input type="text" name="Filter" id="toRO" /></td> >+ <td><label for="fromRO">From</label> <input type="text" name="Filter" id="fromRO" class="datepickerfrom" /> <label for="toRO">To</label> <input type="text" name="Filter" id="toRO"i class="datepickerto" /></td> > </tr> > <tr> > <td>Home library</td> >-- >1.7.9.5
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 10396
:
18628
|
18681
|
18823
|
18832
|
19032