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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +3 lines)
Lines 995-1003 Link Here
995
995
996
        // On-site checkout
996
        // On-site checkout
997
        function toggle_onsite_checkout(){
997
        function toggle_onsite_checkout(){
998
            const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
998
            if ( $("#onsite_checkout").prop('checked') ) {
999
            if ( $("#onsite_checkout").prop('checked') ) {
999
                const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
1000
                duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
1000
                duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
1001
            } else {
1002
                duedatespec_fp.setDate("");
1001
            }
1003
            }
1002
        }
1004
        }
1003
1005
1004
- 

Return to bug 18885