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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-2 / +5 lines)
Lines 74-80 Link Here
74
                    .addClass("clear_date")
74
                    .addClass("clear_date")
75
                    .on("click", function(e){
75
                    .on("click", function(e){
76
                        e.preventDefault();
76
                        e.preventDefault();
77
                        instance.setDate('');
77
                        instance.clear();
78
                    })
78
                    })
79
                    .addClass("fa fa-fw fa-times")
79
                    .addClass("fa fa-fw fa-times")
80
                    .attr("aria-hidden", true)
80
                    .attr("aria-hidden", true)
Lines 113-118 Link Here
113
            new Maskito( instance.altInput, maskitoOptions );
113
            new Maskito( instance.altInput, maskitoOptions );
114
        },
114
        },
115
        onChange: function( selectedDates, dateText, instance) {
115
        onChange: function( selectedDates, dateText, instance) {
116
            if (selectedDates.length === 0) {
117
                return;
118
            }
119
116
            var thisInput = instance.input;
120
            var thisInput = instance.input;
117
            let accepts_time = $(thisInput).data('flatpickr-enable-time');
121
            let accepts_time = $(thisInput).data('flatpickr-enable-time');
118
            let accepts_time_only = $(thisInput).data('flatpickr-time-only');
122
            let accepts_time_only = $(thisInput).data('flatpickr-time-only');
119
- 

Return to bug 38027