Skip to content

Commit 673d6ec

Browse files
committed
Only display the Fancybox if the data-type has been set to image or video.
1 parent 86fcaf5 commit 673d6ec

File tree

2 files changed

+2
-2
lines changed
  • ts/WoltLabSuite/Core/Component/Image
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image

2 files changed

+2
-2
lines changed

ts/WoltLabSuite/Core/Component/Image/Viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getPhrase } from "WoltLabSuite/Core/Language";
55
setDefaultConfig();
66

77
export function setup() {
8-
Fancybox.bind("[data-fancybox]");
8+
Fancybox.bind('[data-fancybox]:is([data-type="image"],[data-type="video"])');
99
}
1010

1111
export function setupLegacy() {

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image/Viewer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)