Skip to content

Commit

Permalink
Fix results scripts init on record versions tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed May 24, 2024
1 parent 4dc5e3c commit 3f14da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/RecordTab/versions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$translations = $this->jsTranslations()->getJSON();
$script = <<<JS
VuFind.addTranslations($translations);
VuFind.initResultScripts($('.results'));
VuFind.initResultScripts('.results');
JS;
?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/RecordTab/versions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$translations = $this->jsTranslations()->getJSON();
$script = <<<JS
VuFind.addTranslations($translations);
VuFind.initResultScripts($('.results'));
VuFind.initResultScripts('.results');
JS;
?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>

0 comments on commit 3f14da9

Please sign in to comment.