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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-1 / +6 lines)
Lines 70-75 Link Here
70
                    }
70
                    }
71
                });
71
                });
72
        },
72
        },
73
        onChange: function( selectedDates, dateText, instance) {
74
            let parsedDate = flatpickr.parseDate(dateText, instance.config.dateFormat);
75
            if ( !parsedDate.getHours() ) {
76
                instance.setDate(selectedDates[0].setHours(23, 59, 0, 0));
77
            }
78
        },
73
        onClose: function( selectedDates, dateText, instance) {
79
        onClose: function( selectedDates, dateText, instance) {
74
            validate_date( dateText, instance );
80
            validate_date( dateText, instance );
75
            var thisInput = instance.input;
81
            var thisInput = instance.input;
76
- 

Return to bug 34939