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> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
1de9d530f4
commit
2e0d86da7e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue