From 39ce23f42d9b63eff39c50a0d069a442e6416cf5 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 23 Sep 2022 22:49:21 +0300 Subject: add the bitton to paste parameters into UI for txt2img, img2img, and pnginfo tabs fixed some [send to..] buttons to work properly with all tabs --- javascript/ui.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) (limited to 'javascript/ui.js') diff --git a/javascript/ui.js b/javascript/ui.js index 22ef5508..076e9436 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -25,13 +25,57 @@ function extract_image_from_gallery(gallery){ return gallery[index]; } -function extract_image_from_gallery_img2img(gallery){ +function args_to_array(args){ + res = [] + for(var i=0;i