diff options
author | Yorhel <git@yorhel.nl> | 2021-04-21 16:46:13 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-04-21 16:46:26 +0200 |
commit | 994ba78ddab0fe399978d566e27a93e92030ef75 (patch) | |
tree | b9b7b0bade5f3cd97fc9c2bf3888939b7d23366c | |
parent | 497e81ea0c6e203d7f67141e4764afe910c81713 (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.
-rw-r--r-- | elm/iv.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |