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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-3 / +10 lines)
Lines 302-310 Link Here
302
                localStorage.selectedWaitingHolds = JSON.stringify(this_dt.$(".select_hold:checked", {"page": "all"}).toArray().map(el => $(el).data('id')));
302
                localStorage.selectedWaitingHolds = JSON.stringify(this_dt.$(".select_hold:checked", {"page": "all"}).toArray().map(el => $(el).data('id')));
303
            });
303
            });
304
304
305
            var activeTab = localStorage.getItem("waitingreserves_activetab");
305
            var hash = document.location.hash;
306
            if( activeTab ){
306
            if( hash !== "" ){
307
                $("div#resultlist li:eq(" + activeTab + ") a").tab("show");
307
                /* The existence of location.hash means someone clicked a link which targets a specific tab */
308
                $( hash ).tab("show");
309
            } else {
310
                /* If no specific tab was linked to, use the last active tab */
311
                var activeTab = localStorage.getItem("waitingreserves_activetab");
312
                if( activeTab ){
313
                    $("div#resultlist li:eq(" + activeTab + ") a").tab("show");
314
                }
308
            }
315
            }
309
            $("div#resultlist a[data-bs-toggle='tab']").on("shown.bs.tab", function (e) {
316
            $("div#resultlist a[data-bs-toggle='tab']").on("shown.bs.tab", function (e) {
310
                var thisTab = $(e.target).parent();
317
                var thisTab = $(e.target).parent();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +1 lines)
Lines 271-277 Link Here
271
271
272
                                [% IF holds_with_cancellation_requests  && CAN_user_circulate_circulate_remaining_permissions %]
272
                                [% IF holds_with_cancellation_requests  && CAN_user_circulate_circulate_remaining_permissions %]
273
                                    <div class="pending-info" id="holds_with_cancellation_requests">
273
                                    <div class="pending-info" id="holds_with_cancellation_requests">
274
                                        <a href="/cgi-bin/koha/circ/waitingreserves.pl?allbranches=1#holdscancelled_panel">Holds with cancellation requests</a>:
274
                                        <a href="/cgi-bin/koha/circ/waitingreserves.pl?allbranches=1#holdscancelled-tab">Holds with cancellation requests</a>:
275
                                        <span class="pending-number-link">[% holds_with_cancellation_requests | html %]</span>
275
                                        <span class="pending-number-link">[% holds_with_cancellation_requests | html %]</span>
276
                                    </div>
276
                                    </div>
277
                                [% END %]
277
                                [% END %]
278
- 

Return to bug 36064