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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-2 / +5 lines)
Lines 352-357 Link Here
352
[% MACRO jsinclude BLOCK %]
352
[% MACRO jsinclude BLOCK %]
353
    [% INCLUDE 'calendar.inc' %]
353
    [% INCLUDE 'calendar.inc' %]
354
    [% INCLUDE 'datatables.inc' %]
354
    [% INCLUDE 'datatables.inc' %]
355
    <script>
356
        // FIXME Why are we using a Perl variable here?
357
        const today_due_date_and_time = "[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]";
358
    </script>
355
    <script>
359
    <script>
356
        $(document).ready(function() {
360
        $(document).ready(function() {
357
            if($('#barcodelist').length) {
361
            if($('#barcodelist').length) {
Lines 369-375 Link Here
369
        function toggle_onsite_checkout(){
373
        function toggle_onsite_checkout(){
370
            if ( $("#onsite_checkout").prop('checked') ) {
374
            if ( $("#onsite_checkout").prop('checked') ) {
371
                const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
375
                const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
372
                duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
376
                duedatespec_fp.setDate("today_due_date_and_time);
373
            };
377
            };
374
        };
378
        };
375
379
376
- 

Return to bug 41568