From 5a4cb32020e791ee2e4e3c361888ef26d7c60fe2 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 Signed-off-by: Katrin Fischer --- .../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.11.0