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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt (-1 / +10 lines)
Lines 84-89 Link Here
84
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
84
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
85
    [% Asset.js("js/modals/place_booking.js") | $raw %]
85
    [% Asset.js("js/modals/place_booking.js") | $raw %]
86
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
86
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
87
    [% Asset.js("js/combobox.js") | $raw %]
87
<script>
88
<script>
88
    var cancel_success = 0;
89
    var cancel_success = 0;
89
    var update_success = 0;
90
    var update_success = 0;
Lines 380-385 Link Here
380
                ),
381
                ),
381
            );
382
            );
382
383
384
        $("#cancellation-reason").comboBox({
385
            displayProperty: 'name',
386
            placeholder: _("Select or type a reason"),
387
        });
388
389
        document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
390
            $("#cancellation-reason").comboBox('reset');
391
        });
392
383
        function handleFilter(e, text, filterStates) {
393
        function handleFilter(e, text, filterStates) {
384
            const target = e.target;
394
            const target = e.target;
385
            const { filter } = target.dataset;
395
            const { filter } = target.dataset;
Lines 400-406 Link Here
400
410
401
            target.classList.toggle("filtered");
411
            target.classList.toggle("filtered");
402
        }
412
        }
403
404
    });
413
    });
405
</script>
414
</script>
406
    [% END %]
415
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (+10 lines)
Lines 1026-1031 Link Here
1026
    [% Asset.js("js/holds.js") | $raw %]
1026
    [% Asset.js("js/holds.js") | $raw %]
1027
    [% INCLUDE 'calendar.inc' %]
1027
    [% INCLUDE 'calendar.inc' %]
1028
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
1028
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
1029
    [% Asset.js("js/combobox.js") | $raw %]
1029
    [% INCLUDE 'js-biblio-format.inc' %]
1030
    [% INCLUDE 'js-biblio-format.inc' %]
1030
    <script>
1031
    <script>
1031
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1032
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
Lines 1143-1148 Link Here
1143
                $('#mainform').submit();
1144
                $('#mainform').submit();
1144
            }
1145
            }
1145
1146
1147
            $("#cancellation-reason").comboBox({
1148
                displayProperty: 'name',
1149
                placeholder: _("Select or type a reason"),
1150
            });
1151
1152
            document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
1153
                $("#cancellation-reason").comboBox('reset');
1154
            });
1155
1146
        });
1156
        });
1147
    </script>
1157
    </script>
1148
    [% INCLUDE 'str/members-menu.inc' %]
1158
    [% INCLUDE 'str/members-menu.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +10 lines)
Lines 768-773 Link Here
768
    [% Asset.js("js/holds.js") | $raw %]
768
    [% Asset.js("js/holds.js") | $raw %]
769
    [% INCLUDE 'calendar.inc' %]
769
    [% INCLUDE 'calendar.inc' %]
770
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
770
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
771
    [% Asset.js("js/combobox.js") | $raw %]
771
    [% INCLUDE 'js-biblio-format.inc' %]
772
    [% INCLUDE 'js-biblio-format.inc' %]
772
    [% INCLUDE 'str/members-menu.inc' %]
773
    [% INCLUDE 'str/members-menu.inc' %]
773
    [% Asset.js("js/members-menu.js") | $raw %]
774
    [% Asset.js("js/members-menu.js") | $raw %]
Lines 826-831 Link Here
826
            $("#view_guarantees_finesandcharges").on("click", function () {
827
            $("#view_guarantees_finesandcharges").on("click", function () {
827
                $("#guarantees_finesandcharges-tab").click();
828
                $("#guarantees_finesandcharges-tab").click();
828
            });
829
            });
830
831
            $("#cancellation-reason").comboBox({
832
                displayProperty: 'name',
833
                placeholder: _("Select or type a reason"),
834
            });
835
836
            document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
837
                $("#cancellation-reason").comboBox('reset');
838
            });
829
        });
839
        });
830
    </script>
840
    </script>
831
    [% Asset.js("js/tables/bookings.js") | $raw %]
841
    [% Asset.js("js/tables/bookings.js") | $raw %]
832
- 

Return to bug 38222