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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc (-4 / +5 lines)
Lines 52-59 Link Here
52
    flatpickr.l10ns.default.weekdays = flatpickr_weekdays;
52
    flatpickr.l10ns.default.weekdays = flatpickr_weekdays;
53
    flatpickr.l10ns.default.months   = flatpickr_months;
53
    flatpickr.l10ns.default.months   = flatpickr_months;
54
    flatpickr.setDefaults({
54
    flatpickr.setDefaults({
55
        allowInput: true,
55
        dateFormat: "Y-m-d",
56
        dateFormat: flatpickr_dateformat_string,
56
        altInput: true,
57
        altFormat: flatpickr_dateformat_string,
58
        altInputClass: 'flatpickr-input',
57
        nextArrow: '<i class="fa fa-fw fa-arrow-right" aria-hidden="true"></i>',
59
        nextArrow: '<i class="fa fa-fw fa-arrow-right" aria-hidden="true"></i>',
58
        prevArrow: '<i class="fa fa-fw fa-arrow-left" aria-hidden="true"></i>',
60
        prevArrow: '<i class="fa fa-fw fa-arrow-left" aria-hidden="true"></i>',
59
        time_24hr: flatpickr_timeformat,
61
        time_24hr: flatpickr_timeformat,
Lines 68-74 Link Here
68
            if( $(instance.input).hasClass("pastdate") ){
70
            if( $(instance.input).hasClass("pastdate") ){
69
                instance.set("maxDate", new Date().fp_incr(-1));
71
                instance.set("maxDate", new Date().fp_incr(-1));
70
            }
72
            }
71
            $(instance.input)
73
            $(instance.input).siblings('input.flatpickr')
72
                /* Add a wrapper element so that we can prevent the clear button from wrapping */
74
                /* Add a wrapper element so that we can prevent the clear button from wrapping */
73
                .wrap("<span class='flatpickr_wrapper'></span>")
75
                .wrap("<span class='flatpickr_wrapper'></span>")
74
                .after( $("<a/>")
76
                .after( $("<a/>")
75
- 

Return to bug 30718