Skip to content

Commit

Permalink
preview-link not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ananyakaligal committed Jan 27, 2025
1 parent c5e9c8f commit be8be4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openlibrary/plugins/openlibrary/js/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function initConfirmationDialogs() {

export function initPreviewDialogs() {
// Colorbox modal + iframe for Book Preview Button
const $buttons = $('.cta-btn--preview');
const $buttons = $('.cta-btn--preview, .cta-btn--preview-link');
$buttons.each((i, button) => {
const $button = $(button);
$button.colorbox({
Expand Down
2 changes: 1 addition & 1 deletion openlibrary/plugins/openlibrary/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ jQuery(function () {
}

// TODO: Make these selectors a consistent interface
const $dialogs = $('.dialog--open,.dialog--close,#noMaster,#confirmMerge,#leave-waitinglist-dialog,.cta-btn--preview');
const $dialogs = $('.dialog--open,.dialog--close,#noMaster,#confirmMerge,#leave-waitinglist-dialog,.cta-btn--preview,.cta-btn--preview-link');
if ($dialogs.length) {
import(/* webpackChunkName: "dialog" */ './dialog')
.then(module => module.initDialogs())
Expand Down

0 comments on commit be8be4f

Please sign in to comment.