Skip to content

Commit 9ab9359

Browse files
authored
Merge pull request #9 from zxy19/dev_change_image_selector
Add .Post-body class selector and exclude .no-fancybox class
2 parents 837d0e9 + 8fb5072 commit 9ab9359

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: js/dist/forum.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: js/dist/forum.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: js/src/forum/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ app.initializers.add('darkle/fancybox', () => {
88

99
extend(CommentPost.prototype, 'oncreate', function (vnode) {
1010
this.element
11-
.querySelectorAll('img:not(.emoji):not(.Avatar):not(.PostMeta-ip img):not([data-reaction]):not([data-link-preview]):not(.flamoji img):not(.countryFlag)')
11+
.querySelectorAll('.Post-body img:not(.emoji):not(.Avatar):not(.PostMeta-ip img):not([data-reaction]):not([data-link-preview]):not(.flamoji img):not(.countryFlag):not(.no-fancybox)')
1212
.forEach((node) => {
1313
const fancyboxEl = document.createElement('a');
1414
fancyboxEl.setAttribute('data-fancybox', 'responsive');

0 commit comments

Comments
 (0)