@@ -, +, @@ --- .../prog/en/modules/circ/waitingreserves.tt | 14 +++++++++++--- .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt @@ -299,10 +299,18 @@ }); }); - var activeTab = localStorage.getItem("waitingreserves_activetab"); - if( activeTab ){ - $("div#resultlist li:eq(" + activeTab + ") a").tab("show"); + var hash = document.location.hash; + if( hash !== "" ){ + /* The existence of location.hash means someone clicked a link which targets a specific tab */ + $( hash ).tab("show"); + } else { + /* If no specific tab was linked to, use the last active tab */ + var activeTab = localStorage.getItem("waitingreserves_activetab"); + if( activeTab ){ + $("div#resultlist li:eq(" + activeTab + ") a").tab("show"); + } } + $("div#resultlist a[data-toggle='tab']").on("shown.bs.tab", function (e) { var thisTab = $(e.target).parent(); var activeTab = thisTab.index(); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -278,7 +278,7 @@ [% END %] [% IF holds_with_cancellation_requests && CAN_user_circulate_circulate_remaining_permissions %]
- Holds with cancellation requests: + Holds with cancellation requests: [% holds_with_cancellation_requests | html %]
[% END %] --