Bug 42238: Fix loading 'holds' tab when navigating with hash
I don't know what caused this to stop working. Possibly a change in the markup due to a bootstrap upgrade? Test plan: Before applying patch: 1) Place any hold for Henry, link to help: <staff_url>/cgi-bin/koha/reserve/request.pl?biblionumber=76&findborrower=23529000035676 2) Open a new tab and visit the Patron details page directly on the 'Holds' tab: <staff_url>/cgi-bin/koha/members/moremember.pl?borrowernumber=19#holds_panel 3) Notice it activates the correct tab, but doesn't load the table. 4) Open a new tab again, this time visit the Patron 'Check out' page directly on the 'Holds' tab: <staff_url>/cgi-bin/koha/circ/circulation.pl?borrowernumber=19#holds_panel 5) Notice the same behavior (tab activates, no table is loaded). 6) Apply patch. Repeat test plan. Confirm table loads on both occasions. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
5187bd52b9
commit
a4903946ca
|
|
@ -139,7 +139,7 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
// If the holds tab is preselected on load, we need to load the table
|
||||
if ($("#holds-tab").parent().hasClass("active")) {
|
||||
if ($("#holds-tab").hasClass("active")) {
|
||||
load_holds_table();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue