« get me outta code hell

css: more depth adjustments - 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-01 21:51:15 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-01 21:51:15 -0400
commit64a4618d244d93fe8d2c62b0a11a941a2ae81bf7 (patch)
tree3a00501bda089f467af3ed7611563ae298df408b /src/static/client3.js
parentc83e95c885bb72ee6882b5db53a98341830a96fa (diff)
css: more depth adjustments
Diffstat (limited to 'src/static/client3.js')
-rw-r--r--src/static/client3.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/static/client3.js b/src/static/client3.js
index 969fe6f..6174e5c 100644
--- a/src/static/client3.js
+++ b/src/static/client3.js
@@ -1621,11 +1621,7 @@ function addImageOverlayClickHandlers() {
     return;
   }
 
-  for (const link of document.querySelectorAll('.image-link')) {
-    if (link.querySelector('img').hasAttribute('data-no-image-preview')) {
-      continue;
-    }
-
+  for (const link of document.querySelectorAll('.image-link:not(.no-image-preview)')) {
     link.addEventListener('click', handleImageLinkClicked);
   }