pull/3/head
yfszzx 2022-10-26 07:35:35 +08:00
parent 1ace87f212
commit 55aeee3c27
2 changed files with 9 additions and 1 deletions

View File

@ -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 ){

View File

@ -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