mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 15:13:45 +03:00
fix extra search button
This commit is contained in:
parent
643836007f
commit
543ea5730b
@ -177,7 +177,7 @@ function saveCardPreview(event, tabname, filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function extraNetworksSearchButton(tabs_id, event) {
|
function extraNetworksSearchButton(tabs_id, event) {
|
||||||
var searchTextarea = gradioApp().querySelector("#" + tabs_id + ' > div > textarea');
|
var searchTextarea = gradioApp().querySelector("#" + tabs_id + ' > label > textarea');
|
||||||
var button = event.target;
|
var button = event.target;
|
||||||
var text = button.classList.contains("search-all") ? "" : button.textContent.trim();
|
var text = button.classList.contains("search-all") ? "" : button.textContent.trim();
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ class ExtraNetworksPage:
|
|||||||
subdirs = {"": 1, **subdirs}
|
subdirs = {"": 1, **subdirs}
|
||||||
|
|
||||||
subdirs_html = "".join([f"""
|
subdirs_html = "".join([f"""
|
||||||
<button class='lg secondary gradio-button custom-button{" search-all" if subdir=="" else ""}' onclick='extraNetworksSearchButton("{tabname}_extra_tabs", event)'>
|
<button class='lg secondary gradio-button custom-button{" search-all" if subdir=="" else ""}' onclick='extraNetworksSearchButton("{tabname}_extra_search", event)'>
|
||||||
{html.escape(subdir if subdir!="" else "all")}
|
{html.escape(subdir if subdir!="" else "all")}
|
||||||
</button>
|
</button>
|
||||||
""" for subdir in subdirs])
|
""" for subdir in subdirs])
|
||||||
|
Loading…
Reference in New Issue
Block a user