Bug 33897: (QA follow-up) Correct code for tab selection

This patch corrects the code for selecting tabs other than the first
tab.

To test, apply the patch and view the bibliographic detail page for a
serial record and with various settings of the opacSerialDefaultTab
system preference.

If you select "subscriptions tab" the subscriptions tab should be active
by default.

You can also enable html5media and view a record with html5media
information and no holdings. The media tab should be displayed by
default.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5308697ab8)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2023-06-09 17:19:28 +00:00 committed by Martin Renvoize
parent 3f8a4a4756
commit 6e99fa4ec7
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -2036,7 +2036,7 @@
});
function showBsTab( container, panelid ){
if( $( "#" + panelid ).length == 1 ){
if( $( "#" + panelid + "_panel" ).length == 1 ){
$("#" + container + " a[href='#" + panelid + "_panel']").tab("show");
} else {
$("#" + container + " a:first").tab("show");