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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-1 / +2 lines)
Lines 35-41 Link Here
35
                .after( $("<a/>")
35
                .after( $("<a/>")
36
                    .attr("href","#")
36
                    .attr("href","#")
37
                    .addClass("clear_date")
37
                    .addClass("clear_date")
38
                    .on("click", function(){
38
                    .on("click", function(e){
39
                        e.preventDefault();
39
                        instance.clear();
40
                        instance.clear();
40
                    })
41
                    })
41
                    .addClass("fa fa-fw fa-remove")
42
                    .addClass("fa fa-fw fa-remove")
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-10 / +12 lines)
Lines 331-346 Link Here
331
[% MACRO jsinclude BLOCK %]
331
[% MACRO jsinclude BLOCK %]
332
    [% INCLUDE 'calendar.inc' %]
332
    [% INCLUDE 'calendar.inc' %]
333
    <script>
333
    <script>
334
        var startPicker = $("#from").flatpickr({
334
        $(document).ready(function(){
335
            onClose: function( selectedDates, dateText, instance) {
335
            var startPicker = $("#from").flatpickr({
336
                validate_date( selectedDates, instance );
336
                onClose: function( selectedDates, dateText, instance) {
337
                endPicker.set('minDate', selectedDates[0]);
337
                    validate_date( selectedDates, instance );
338
            }
338
                    endPicker.set('minDate', selectedDates[0]);
339
        });
339
                }
340
        var endPicker = $("#to").flatpickr({
340
            });
341
            onClose: function( selectedDates, dateText, instance) {
341
            var endPicker = $("#to").flatpickr({
342
                validate_date( selectedDates, instance );
342
                onClose: function( selectedDates, dateText, instance) {
343
            },
343
                    validate_date( selectedDates, instance );
344
                },
345
            });
344
        });
346
        });
345
    </script>
347
    </script>
346
[% END %]
348
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/categories.js (-3 lines)
Lines 21-28 jQuery.validator.addMethod( "enrollment_period", function(){ Link Here
21
    }, __("Please choose an enrollment period in months OR by date.")
21
    }, __("Please choose an enrollment period in months OR by date.")
22
);
22
);
23
23
24
flatpickr.l10ns.default.firstDayOfWeek = calendarFirstDayOfWeek;
25
26
$(document).ready(function() {
24
$(document).ready(function() {
27
    KohaTable("patron_categories", {
25
    KohaTable("patron_categories", {
28
        "aoColumnDefs": [{
26
        "aoColumnDefs": [{
29
- 

Return to bug 28928