diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-14 03:51:26 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-14 03:51:26 +0000 |
commit | d48f3470c8a86f22dce106e7d3c1803e5ba92085 (patch) | |
tree | 2526ceaffa0177b40cecc30854f66a524cf6ac71 /javascript/ui.js | |
parent | 4a37c7eedeab579efec03e8dae3f3f9fd4a37b02 (diff) | |
parent | 7c8903367c350e7e3ba8f90679890566446f36b2 (diff) | |
download | stable-diffusion-webui-gfx803-d48f3470c8a86f22dce106e7d3c1803e5ba92085.tar.gz stable-diffusion-webui-gfx803-d48f3470c8a86f22dce106e7d3c1803e5ba92085.tar.bz2 stable-diffusion-webui-gfx803-d48f3470c8a86f22dce106e7d3c1803e5ba92085.zip |
Merge branch 'master' of https://github.com/yfszzx/stable-diffusion-webui-plus
Diffstat (limited to 'javascript/ui.js')
-rw-r--r-- | javascript/ui.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/javascript/ui.js b/javascript/ui.js index 4100944e..0f8fe68e 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -33,27 +33,27 @@ function args_to_array(args){ } function switch_to_txt2img(){ - gradioApp().querySelectorAll('button')[0].click(); + gradioApp().querySelector('#tabs').querySelectorAll('button')[0].click(); return args_to_array(arguments); } function switch_to_img2img_img2img(){ - gradioApp().querySelectorAll('button')[1].click(); + gradioApp().querySelector('#tabs').querySelectorAll('button')[1].click(); gradioApp().getElementById('mode_img2img').querySelectorAll('button')[0].click(); return args_to_array(arguments); } function switch_to_img2img_inpaint(){ - gradioApp().querySelectorAll('button')[1].click(); + gradioApp().querySelector('#tabs').querySelectorAll('button')[1].click(); gradioApp().getElementById('mode_img2img').querySelectorAll('button')[1].click(); return args_to_array(arguments); } function switch_to_extras(){ - gradioApp().querySelectorAll('button')[2].click(); + gradioApp().querySelector('#tabs').querySelectorAll('button')[2].click(); return args_to_array(arguments); } |