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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-3 / +11 lines)
Lines 299-308 Link Here
299
              });
299
              });
300
            });
300
            });
301
301
302
            var activeTab = localStorage.getItem("waitingreserves_activetab");
302
            var hash = document.location.hash;
303
            if( activeTab ){
303
            if( hash !== "" ){
304
                $("div#resultlist li:eq(" + activeTab + ") a").tab("show");
304
                /* The existence of location.hash means someone clicked a link which targets a specific tab */
305
                $( hash ).tab("show");
306
            } else {
307
                /* If no specific tab was linked to, use the last active tab */
308
                var activeTab = localStorage.getItem("waitingreserves_activetab");
309
                if( activeTab ){
310
                    $("div#resultlist li:eq(" + activeTab + ") a").tab("show");
311
                }
305
            }
312
            }
313
306
            $("div#resultlist a[data-toggle='tab']").on("shown.bs.tab", function (e) {
314
            $("div#resultlist a[data-toggle='tab']").on("shown.bs.tab", function (e) {
307
                var thisTab = $(e.target).parent();
315
                var thisTab = $(e.target).parent();
308
                var activeTab = thisTab.index();
316
                var activeTab = thisTab.index();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +1 lines)
Lines 278-284 Link Here
278
                                [% END %]
278
                                [% END %]
279
                                [% IF holds_with_cancellation_requests  && CAN_user_circulate_circulate_remaining_permissions %]
279
                                [% IF holds_with_cancellation_requests  && CAN_user_circulate_circulate_remaining_permissions %]
280
                                    <div class="pending-info" id="holds_with_cancellation_requests">
280
                                    <div class="pending-info" id="holds_with_cancellation_requests">
281
                                        <a href="/cgi-bin/koha/circ/waitingreserves.pl?allbranches=1#holdscancelled_panel">Holds with cancellation requests</a>:
281
                                        <a href="/cgi-bin/koha/circ/waitingreserves.pl?allbranches=1#holdscancelled-tab">Holds with cancellation requests</a>:
282
                                        <span class="pending-number-link">[% holds_with_cancellation_requests | html %]</span>
282
                                        <span class="pending-number-link">[% holds_with_cancellation_requests | html %]</span>
283
                                    </div>
283
                                    </div>
284
                                [% END %]
284
                                [% END %]
285
- 

Return to bug 36064