« get me outta code hell

content, css: fix bad rule for styling image-container w/ link - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/client3.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-11 21:04:30 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-11 21:04:30 -0400
commit3eb50e4e16c7326342fd49b0a9fd3ea1b8cec46f (patch)
treeec21153e69a3669208a1178d872fb06a4136eecb /src/static/client3.js
parent4ad0c3946a132f20742cc4de7f7dd31c79bb4653 (diff)
content, css: fix bad rule for styling image-container w/ link
Diffstat (limited to 'src/static/client3.js')
-rw-r--r--src/static/client3.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/client3.js b/src/static/client3.js
index 595bf61..865aa78 100644
--- a/src/static/client3.js
+++ b/src/static/client3.js
@@ -1679,7 +1679,11 @@ function addImageOverlayClickHandlers() {
     return;
   }
 
-  for (const link of document.querySelectorAll('.image-link:not(.no-image-preview)')) {
+  for (const link of document.querySelectorAll('.image-link')) {
+    if (link.closest('.no-image-preview')) {
+      continue;
+    }
+
     link.addEventListener('click', handleImageLinkClicked);
   }