diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-11 12:37:03 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-11 12:37:03 +0000 |
commit | 87d63bbab5c973ac5cec777ef7304d28f1ab3f24 (patch) | |
tree | b80f6af694e830c0f9e3259ffaf7054dc025ae45 /javascript/images_history.js | |
parent | 594ab4ba53a80a0a3606565404e6d1fbb60f6629 (diff) | |
download | stable-diffusion-webui-gfx803-87d63bbab5c973ac5cec777ef7304d28f1ab3f24.tar.gz stable-diffusion-webui-gfx803-87d63bbab5c973ac5cec777ef7304d28f1ab3f24.tar.bz2 stable-diffusion-webui-gfx803-87d63bbab5c973ac5cec777ef7304d28f1ab3f24.zip |
images history improvement
Diffstat (limited to 'javascript/images_history.js')
-rw-r--r-- | javascript/images_history.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/javascript/images_history.js b/javascript/images_history.js index 9a3e00a0..d62eb181 100644 --- a/javascript/images_history.js +++ b/javascript/images_history.js @@ -93,7 +93,6 @@ function images_history_delete(tabname, img_path, img_file_name, page_index, fil buttons.push(e) } }) - img_num = buttons.length / 2 if (img_num == 1){ @@ -110,15 +109,14 @@ function images_history_delete(tabname, img_path, img_file_name, page_index, fil btn = buttons[image_index + 1] } setTimeout(function(btn){btn.click()}, 30, btn) - } - + } return [tabname, img_path, img_file_name, page_index, filenames, image_index] } function images_history_turnpage(img_path, page_index, image_index, tabname){ buttons = gradioApp().getElementById(tabname + '_images_history').querySelectorAll(".gallery-item") buttons.forEach(function(elem) { - elem.style.display = 'block' + elem.style.display = 'block' }) return [img_path, page_index, image_index, tabname] } |