summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-04-21 16:46:13 +0200
committerYorhel <git@yorhel.nl>2021-04-21 16:46:26 +0200
commit994ba78ddab0fe399978d566e27a93e92030ef75 (patch)
treeb9b7b0bade5f3cd97fc9c2bf3888939b7d23366c /elm
parent497e81ea0c6e203d7f67141e4764afe910c81713 (diff)
js/iv: Fix reinitialization of image viewer to ignore its own images
This bug would sometimes cause the next/prev links to be wrong in the VN screenshot editor when adding/removing images.
Diffstat (limited to 'elm')
-rw-r--r--elm/iv.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/iv.js b/elm/iv.js
index 06bb6f5a..716438c6 100644
--- a/elm/iv.js
+++ b/elm/iv.js
@@ -206,7 +206,7 @@ window.ivClose = function(ev) {
window.ivInit = function() {
cats = {};
document.querySelectorAll('a[data-iv]').forEach(function(o) {
- if(o == ivnext || o == ivprev)
+ if(o == ivnext || o == ivprev || o == ivfull || o == ivhoverprev || o == ivhovernext)
return;
o.addEventListener('click', show);
var cat = o.getAttribute('data-iv').split(':')[1];