Skip to content

Commit

Permalink
Style: add missing semi-colons to generated JS code.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 24, 2025
1 parent 866ff32 commit fbc90b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@

if (!empty($lightboxParent)) {
$lightboxParent = json_encode((string)$lightboxParent);
$appendScripts[] = 'VuFind.lightbox.parent = ' . $lightboxParent;
$appendScripts[] = 'VuFind.lightbox.parent = ' . $lightboxParent . ';';
}

if (!empty($lightboxChild)) {
$lightboxChild = json_encode((string)$lightboxChild);
$appendScripts[] = 'VuFind.lightbox.child = ' . $lightboxChild;
$appendScripts[] = 'VuFind.lightbox.child = ' . $lightboxChild . ';';
}

$this->headScript()->appendScript(implode("\n", $appendScripts));
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap5/templates/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@

if (!empty($lightboxParent)) {
$lightboxParent = json_encode((string)$lightboxParent);
$appendScripts[] = 'VuFind.lightbox.parent = ' . $lightboxParent;
$appendScripts[] = 'VuFind.lightbox.parent = ' . $lightboxParent . ';';
}

if (!empty($lightboxChild)) {
$lightboxChild = json_encode((string)$lightboxChild);
$appendScripts[] = 'VuFind.lightbox.child = ' . $lightboxChild;
$appendScripts[] = 'VuFind.lightbox.child = ' . $lightboxChild . ';';
}

$this->headScript()->appendScript(implode("\n", $appendScripts));
Expand Down

0 comments on commit fbc90b9

Please sign in to comment.