diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:48:11 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:48:11 +0000 |
commit | af547f63c39156f89f6a05c86a12109f05c2235e (patch) | |
tree | dfec8957021ab349db372c99c045683e7e8000e1 /javascript | |
parent | a1e5e0d7669def010ecf31d801d6f0667bcf8061 (diff) | |
parent | 3c207ca68483b3406faf519bde2743b578dac222 (diff) | |
download | stable-diffusion-webui-gfx803-af547f63c39156f89f6a05c86a12109f05c2235e.tar.gz stable-diffusion-webui-gfx803-af547f63c39156f89f6a05c86a12109f05c2235e.tar.bz2 stable-diffusion-webui-gfx803-af547f63c39156f89f6a05c86a12109f05c2235e.zip |
Merge branch 'Inspiron'
Diffstat (limited to 'javascript')
-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 cfd0dcd3..7e116465 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 |