Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Dec 9, 2024
1 parent c043a75 commit 6c6c4db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/bootstrap5/js/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function applyPreviewUrl($link, url) {
// Update associated record thumbnail, if any:
$link.parents('.result,.record')
.find('.recordcover[data-linkpreview="true"]').parents('a').attr('href', url)
.off('click') // disable custom click handling
.attr('data-lightbox-image', null) // disable opening in lightbox
.attr('target', '_blank') // open consistently with preview button
.off('click') // disable custom click handling
.attr('data-lightbox-image', null) // disable opening in lightbox
.attr('target', '_blank') // open consistently with preview button
.attr('rel', 'noopener');
}

Expand Down

0 comments on commit 6c6c4db

Please sign in to comment.