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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt (-4 lines)
Lines 386-395 Link Here
386
            placeholder: _("Select or type a reason"),
386
            placeholder: _("Select or type a reason"),
387
        });
387
        });
388
388
389
        document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
390
            $("#cancellation-reason").comboBox('reset');
391
        });
392
393
        function handleFilter(e, text, filterStates) {
389
        function handleFilter(e, text, filterStates) {
394
            const target = e.target;
390
            const target = e.target;
395
            const { filter } = target.dataset;
391
            const { filter } = target.dataset;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-5 lines)
Lines 1148-1158 Link Here
1148
                displayProperty: 'name',
1148
                displayProperty: 'name',
1149
                placeholder: _("Select or type a reason"),
1149
                placeholder: _("Select or type a reason"),
1150
            });
1150
            });
1151
1152
            document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
1153
                $("#cancellation-reason").comboBox('reset');
1154
            });
1155
1156
        });
1151
        });
1157
    </script>
1152
    </script>
1158
    [% INCLUDE 'str/members-menu.inc' %]
1153
    [% INCLUDE 'str/members-menu.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-4 lines)
Lines 832-841 Link Here
832
                displayProperty: 'name',
832
                displayProperty: 'name',
833
                placeholder: _("Select or type a reason"),
833
                placeholder: _("Select or type a reason"),
834
            });
834
            });
835
836
            document.getElementById("cancelBookingModal")?.addEventListener('hide.bs.modal', () => {
837
                $("#cancellation-reason").comboBox('reset');
838
            });
839
        });
835
        });
840
    </script>
836
    </script>
841
    [% Asset.js("js/tables/bookings.js") | $raw %]
837
    [% Asset.js("js/tables/bookings.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js (-1 / +6 lines)
Lines 6-11 Link Here
6
        .getElementById("cancelBookingForm")
6
        .getElementById("cancelBookingForm")
7
        ?.addEventListener("submit", handleSubmit);
7
        ?.addEventListener("submit", handleSubmit);
8
8
9
    document
10
        .getElementById("cancelBookingModal")
11
        ?.addEventListener("hide.bs.modal", () => {
12
            $("#cancellation-reason").comboBox("reset");
13
        });
14
9
    async function handleSubmit(e) {
15
    async function handleSubmit(e) {
10
        e.preventDefault();
16
        e.preventDefault();
11
17
12
- 

Return to bug 38222