aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/ui.js
diff options
context:
space:
mode:
authorLiam <liamthekerr@gmail.com>2022-11-10 18:07:41 +0000
committerLiam <liamthekerr@gmail.com>2022-11-10 18:14:04 +0000
commitb98740129c435f04a060369bd071fc4bafe021f5 (patch)
tree9bf290d8ee900102d1a0131ca1186e191a13af3c /javascript/ui.js
parent81f2575df91a50e4aa9ca816e02e3f77342eedc8 (diff)
downloadstable-diffusion-webui-gfx803-b98740129c435f04a060369bd071fc4bafe021f5.tar.gz
stable-diffusion-webui-gfx803-b98740129c435f04a060369bd071fc4bafe021f5.tar.bz2
stable-diffusion-webui-gfx803-b98740129c435f04a060369bd071fc4bafe021f5.zip
added event listener for the image gallery modal; moved js to separate file
Diffstat (limited to 'javascript/ui.js')
-rw-r--r--javascript/ui.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/javascript/ui.js b/javascript/ui.js
index 443d1642..95cfd106 100644
--- a/javascript/ui.js
+++ b/javascript/ui.js
@@ -179,17 +179,9 @@ onUiUpdate(function(){
img2img_textarea = gradioApp().querySelector("#img2img_prompt > label > textarea");
img2img_textarea?.addEventListener("input", () => update_token_counter("img2img_token_button"));
}
- if (!txt2img_gallery) {
- txt2img_gallery = gradioApp().querySelector('#txt2img_gallery')
- txt2img_gallery?.addEventListener('click', () => gradioApp().getElementById("txt2img_generation_info_button").click());
- }
- if (!img2img_gallery) {
- img2img_gallery = gradioApp().querySelector('#img2img_gallery')
- img2img_gallery?.addEventListener('click', () => gradioApp().getElementById("img2img_generation_info_button").click());
- }
})
-let txt2img_textarea, img2img_textarea, txt2img_gallery, img2img_gallery = undefined;
+let txt2img_textarea, img2img_textarea = undefined;
let wait_time = 800
let token_timeout;