diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-15 15:53:49 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-15 15:53:49 +0000 |
commit | 6e4f5566b58e36aede83427df6c69eba8517af28 (patch) | |
tree | e840725f157d94ceaf21f45a36f088df072b23c4 /javascript | |
parent | acedbe67d2b8a3af99ca3b9a2f809e7a2db285d1 (diff) | |
download | stable-diffusion-webui-gfx803-6e4f5566b58e36aede83427df6c69eba8517af28.tar.gz stable-diffusion-webui-gfx803-6e4f5566b58e36aede83427df6c69eba8517af28.tar.bz2 stable-diffusion-webui-gfx803-6e4f5566b58e36aede83427df6c69eba8517af28.zip |
sorting files
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/images_history.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/images_history.js b/javascript/images_history.js index f7d052c3..7f0d8f42 100644 --- a/javascript/images_history.js +++ b/javascript/images_history.js @@ -96,7 +96,7 @@ function images_history_get_current_img(tabname, image_path, files){ ]; } -function images_history_delete(del_num, tabname, img_path, img_file_name, page_index, filenames, image_index){ +function images_history_delete(del_num, tabname, img_file_name, page_index, filenames, image_index){ image_index = parseInt(image_index); var tab = gradioApp().getElementById(tabname + '_images_history'); var set_btn = tab.querySelector(".images_history_set_index"); @@ -132,12 +132,12 @@ function images_history_delete(del_num, tabname, img_path, img_file_name, page_i return [del_num, tabname, img_path, img_file_name, page_index, filenames, image_index]; } -function images_history_turnpage(img_path, page_index, image_index, tabname){ +function images_history_turnpage(img_path, page_index, image_index, tabname, date_from, date_to){ var buttons = gradioApp().getElementById(tabname + '_images_history').querySelectorAll(".gallery-item"); buttons.forEach(function(elem) { elem.style.display = 'block'; }) - return [img_path, page_index, image_index, tabname]; + return [img_path, page_index, image_index, tabname, date_from, date_to]; } function images_history_enable_del_buttons(){ |