diff --git a/javascript/images_history.js b/javascript/images_history.js index f68b7f4..5a3a633 100644 --- a/javascript/images_history.js +++ b/javascript/images_history.js @@ -140,7 +140,11 @@ function images_history_init(){ var tabname = images_history_tab_list[i] tab_btns[i].setAttribute("tabname", tabname); tab_btns[i].addEventListener('click', function(){ - gradioApp().getElementById(this.getAttribute("tabname") + "_images_history_renew_page").click(); + var tabs_box = gradioApp().getElementById("images_history_tab"); + if (!tabs_box.classList.contains(this.getAttribute("tabname"))) { + gradioApp().getElementById(this.getAttribute("tabname") + "_images_history_renew_page").click(); + tabs_box.classList.add(this.getAttribute("tabname")) + } }); } if (gradioApp().getElementById("images_history_preload").querySelector("input").checked ){ diff --git a/scripts/images_history.py b/scripts/images_history.py index 2767e6c..63073b4 100644 --- a/scripts/images_history.py +++ b/scripts/images_history.py @@ -317,3 +317,7 @@ def on_ui_settings(): script_callbacks.on_ui_settings(on_ui_settings) script_callbacks.on_ui_tabs(on_ui_tabs) + +#TODO: +#send to remove seed +#generate info in txt \ No newline at end of file