View | Details | Raw Unified | Return to bug 29232
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-15 lines)
Lines 231-250 Link Here
231
        actTotal = "";
231
        actTotal = "";
232
232
233
        $(document).ready(function() {
233
        $(document).ready(function() {
234
            // http://jqueryui.com/demos/datepicker/#date-range
235
            var dates = $( "#filter_date_begin, #filter_date_end" ).datepicker({
236
                changeMonth: true,
237
                numberOfMonths: 1,
238
                onSelect: function( selectedDate ) {
239
                    var option = this.id == "filter_date_begin" ? "minDate" : "maxDate",
240
                        instance = $( this ).data( "datepicker" );
241
                        date = $.datepicker.parseDate(
242
                            instance.settings.dateFormat ||
243
                            $.datepicker._defaults.dateFormat,
244
                            selectedDate, instance.settings );
245
                    dates.not( this ).datepicker( "option", option, date );
246
                }
247
            });
248
234
249
            $('#frmCashRegister').submit(function() {
235
            $('#frmCashRegister').submit(function() {
250
                var isFormValid = true;
236
                var isFormValid = true;
251
- 

Return to bug 29232