diff options
author | papuSpartan <30642826+papuSpartan@users.noreply.github.com> | 2022-10-31 20:08:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 20:08:54 +0000 |
commit | 25de9df3648f6d936ec7dbbb91c6c04bc3939a62 (patch) | |
tree | 8dbf732357d5ed094350827aff4caa7741f5a4cc /javascript/ui.js | |
parent | ce42879438bf2dbd76b5b346be656292e42ffb2b (diff) | |
parent | 5c9b3625fa03f18649e1843b5e9f2df2d4de94f9 (diff) | |
download | stable-diffusion-webui-gfx803-25de9df3648f6d936ec7dbbb91c6c04bc3939a62.tar.gz stable-diffusion-webui-gfx803-25de9df3648f6d936ec7dbbb91c6c04bc3939a62.tar.bz2 stable-diffusion-webui-gfx803-25de9df3648f6d936ec7dbbb91c6c04bc3939a62.zip |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'javascript/ui.js')
-rw-r--r-- | javascript/ui.js | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/javascript/ui.js b/javascript/ui.js index 39011079..be47ec64 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -45,14 +45,14 @@ function switch_to_txt2img(){ return args_to_array(arguments); } -function switch_to_img2img_img2img(){ +function switch_to_img2img(){ 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(){ +function switch_to_inpaint(){ gradioApp().querySelector('#tabs').querySelectorAll('button')[1].click(); gradioApp().getElementById('mode_img2img').querySelectorAll('button')[1].click(); @@ -65,26 +65,6 @@ function switch_to_extras(){ return args_to_array(arguments); } -function extract_image_from_gallery_txt2img(gallery){ - switch_to_txt2img() - return extract_image_from_gallery(gallery); -} - -function extract_image_from_gallery_img2img(gallery){ - switch_to_img2img_img2img() - return extract_image_from_gallery(gallery); -} - -function extract_image_from_gallery_inpaint(gallery){ - switch_to_img2img_inpaint() - return extract_image_from_gallery(gallery); -} - -function extract_image_from_gallery_extras(gallery){ - switch_to_extras() - return extract_image_from_gallery(gallery); -} - function get_tab_index(tabId){ var res = 0 |