Skip to content
Snippets Groups Projects
Commit d1cd5eb5 authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Frank Morgner
Browse files

refs #13039

* fixes toggler behaviour in collection-info
parent 1de1521e
No related merge requests found
...@@ -10,10 +10,10 @@ function showMoreInfoToggle() { ...@@ -10,10 +10,10 @@ function showMoreInfoToggle() {
// finc: Keep Accordion OPEN on load // finc: Keep Accordion OPEN on load
// toggleCollectionInfo(); // toggleCollectionInfo();
$("#moreInfoToggle").removeClass('hidden'); $("#moreInfoToggle").removeClass('hidden');
$("#moreInfoToggle").click(function moreInfoToggleClick(e) { //$("#moreInfoToggle").click(function moreInfoToggleClick(e) {
e.preventDefault(); // e.preventDefault();
toggleCollectionInfo(); // toggleCollectionInfo();
}); //});
} }
$(document).ready(function collectionRecordReady() { $(document).ready(function collectionRecordReady() {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<? /* finc-specific snippet - Begin - CK */ ?> <? /* finc-specific snippet - Begin - CK */ ?>
<? /* Do not set to 'hidden', make table below collapse in; adapt collection_record.js to keep accordion open - CK */ ?> <? /* Do not set to 'hidden', make table below collapse in; adapt collection_record.js to keep accordion open - CK */ ?>
<a id="moreInfoToggle" href="#" class="accordion-toggler" data-toggle="collapse" aria-expanded="true"> <a id="moreInfoToggle" href="#" class="accordion-toggler collapsed hidden" data-toggle="collapse" data-target="#collectionInfo" aria-expanded="true">
<?=$this->transEsc('Description')?> <?=$this->transEsc('Description')?>
</a> </a>
<?/* Display Main Details */?> <?/* Display Main Details */?>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
?> ?>
<? if (!empty($fields)): ?> <? if (!empty($fields)): ?>
<?/* finc: we use 'collapse in' to initially hide the content, CK */?> <?/* finc: we use 'collapse in' to initially hide the content, CK */?>
<table id="collectionInfo" class="table table-striped collapse in" style="display: table"> <table id="collectionInfo" class="table table-striped collapse in">
<? /* Table summary not supported in html 5, finc-specific solution, CK */ ?> <? /* Table summary not supported in html 5, finc-specific solution, CK */ ?>
<caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption> <caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption>
<? foreach ($fields as $key => $current): ?> <? foreach ($fields as $key => $current): ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment