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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-3 / +7 lines)
Lines 449-454 Link Here
449
            day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY | html %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE | replace('"','\"') | html %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') | html %]"};
449
            day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY | html %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE | replace('"','\"') | html %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') | html %]"};
450
        [% END %]
450
        [% END %]
451
451
452
        const calendardate = "[% calendardate | html %]";
453
        const keydate = "[% keydate | html %]";
454
    </script>
455
456
    <script>
452
        function holidayOperation(formObject, opType) {
457
        function holidayOperation(formObject, opType) {
453
            var op = document.getElementsByName('operation');
458
            var op = document.getElementsByName('operation');
454
            op[0].value = opType;
459
            op[0].value = opType;
Lines 518-524 Link Here
518
523
519
        function changeBranch () {
524
        function changeBranch () {
520
            var branch = $("#branch option:selected").val();
525
            var branch = $("#branch option:selected").val();
521
            location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch + '&calendardate=' + "[% calendardate | html %]";
526
            location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch + '&calendardate=' + calendardate;
522
        }
527
        }
523
528
524
        /**
529
        /**
Lines 673-679 Link Here
673
                    }
678
                    }
674
679
675
                },
680
                },
676
                defaultDate: new Date("[% keydate | html %]")
681
                defaultDate: new Date(keydate);
677
            });
682
            });
678
683
679
            $(".hidePanel").on("click",function(){
684
            $(".hidePanel").on("click",function(){
680
- 

Return to bug 41580