diff options
author | Aarni Koskela <akx@iki.fi> | 2023-04-30 19:08:52 +0000 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-04-30 19:08:52 +0000 |
commit | 8ccc27127bd5abcba05f30f8a72fc37025b588ac (patch) | |
tree | d9bd30fb6e301ff996d2889d54304c089c73bee8 /javascript/imageviewer.js | |
parent | 34a6ad80d5a3d6670a9e89089558e724d8c9f8bd (diff) | |
download | stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.tar.gz stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.tar.bz2 stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.zip |
Fix a whole bunch of implicit globals
Diffstat (limited to 'javascript/imageviewer.js')
-rw-r--r-- | javascript/imageviewer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/imageviewer.js b/javascript/imageviewer.js index f364a2a1..32066ab8 100644 --- a/javascript/imageviewer.js +++ b/javascript/imageviewer.js @@ -57,7 +57,7 @@ function modalImageSwitch(offset) { }) if (result != -1) { - nextButton = galleryButtons[negmod((result + offset), galleryButtons.length)] + var nextButton = galleryButtons[negmod((result + offset), galleryButtons.length)] nextButton.click() const modalImage = gradioApp().getElementById("modalImage"); const modal = gradioApp().getElementById("lightboxModal"); @@ -148,7 +148,7 @@ function modalZoomSet(modalImage, enable) { } function modalZoomToggle(event) { - modalImage = gradioApp().getElementById("modalImage"); + var modalImage = gradioApp().getElementById("modalImage"); modalZoomSet(modalImage, !modalImage.classList.contains('modalImageFullscreen')) event.stopPropagation() } @@ -175,7 +175,7 @@ function galleryImageHandler(e) { } onUiUpdate(function() { - fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > div > img') + var fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > div > img') if (fullImg_preview != null) { fullImg_preview.forEach(setupImageForLightbox); } |