Bugzilla – Attachment 126406 Details for
Bug 29232
Clean up obsolete jQueryUI datepicker code from cash register stats template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29232: Clean up obsolete jQueryUI datepicker code from cash register stats template
Bug-29232-Clean-up-obsolete-jQueryUI-datepicker-co.patch (text/plain), 1.99 KB, created by
David Nind
on 2021-10-16 17:51:56 UTC
(
hide
)
Description:
Bug 29232: Clean up obsolete jQueryUI datepicker code from cash register stats template
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-10-16 17:51:56 UTC
Size:
1.99 KB
patch
obsolete
>From 21034ead56a54ff7d238e8818b69c78c38b9c407 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 13 Oct 2021 17:58:58 +0000 >Subject: [PATCH] Bug 29232: Clean up obsolete jQueryUI datepicker code from > cash register stats template > >This patch removes some jQueryUI datepicker code from >reports/cash_register_stats.tt which was left behind by Bug 28949. > >To test, apply the patch and go to Reports -> Cash register statistics >wizard. The "From" and "To" date fields should work correctly, since >Flatpickr code is unchanged. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/reports/cash_register_stats.tt | 14 -------------- > 1 file changed, 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >index d442c6981f..d2f54f421c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >@@ -231,20 +231,6 @@ > actTotal = ""; > > $(document).ready(function() { >- // http://jqueryui.com/demos/datepicker/#date-range >- var dates = $( "#filter_date_begin, #filter_date_end" ).datepicker({ >- changeMonth: true, >- numberOfMonths: 1, >- onSelect: function( selectedDate ) { >- var option = this.id == "filter_date_begin" ? "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 ); >- } >- }); > > $('#frmCashRegister').submit(function() { > var isFormValid = true; >-- >2.20.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 29232
:
126230
|
126406
|
126464