diff options
author | Alexandre Simard <as.simard@outlook.com> | 2022-09-26 21:18:57 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-27 05:52:43 +0000 |
commit | c74becca23d17eeeee3774b6629674a010ae91bd (patch) | |
tree | b54c6a0035a5d87bcf877beebaffe92e58f4d301 | |
parent | 16e7ac09df1cef85781494a1234a7aa3c51fb4a9 (diff) | |
download | stable-diffusion-webui-gfx803-c74becca23d17eeeee3774b6629674a010ae91bd.tar.gz stable-diffusion-webui-gfx803-c74becca23d17eeeee3774b6629674a010ae91bd.tar.bz2 stable-diffusion-webui-gfx803-c74becca23d17eeeee3774b6629674a010ae91bd.zip |
Solve issue #962
Fix by @MrAcademy
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | javascript/ui.js | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -19,4 +19,5 @@ __pycache__ /webui-user.sh /interrogate /user.css -/.idea
\ No newline at end of file +/.idea +/SwinIR diff --git a/javascript/ui.js b/javascript/ui.js index 076e9436..7db4db48 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -1,9 +1,8 @@ // various functions for interation with ui.py not large enough to warrant putting them in separate files function selected_gallery_index(){ - var gr = gradioApp() - var buttons = gradioApp().querySelectorAll(".gallery-item") - var button = gr.querySelector(".gallery-item.\\!ring-2") + var buttons = gradioApp().querySelectorAll('[style="display: block;"].tabitem .gallery-item') + var button = gradioApp().querySelector('[style="display: block;"].tabitem .gallery-item.\\!ring-2') var result = -1 buttons.forEach(function(v, i){ if(v==button) { result = i } }) |