mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-01 05:11:19 -08:00
clean up svg code
This commit is contained in:
parent
a2f8f99451
commit
4e9760c49f
4 changed files with 26 additions and 27 deletions
|
|
@ -1173,8 +1173,12 @@ function extraNetworksControlSortDirOnClick(event) {
|
|||
}
|
||||
|
||||
let sort_dir_str = curr_sort_dir_str === "ascending" ? "descending" : "ascending";
|
||||
btn.dataset.sortDir = sort_dir_str;
|
||||
btn.setAttribute("title", `Sort ${sort_dir_str}`);
|
||||
|
||||
const other_btn = tab.controls_elem.querySelector(
|
||||
`.extra-network-control--sort-dir[data-sort-dir="${sort_dir_str}"]`
|
||||
);
|
||||
delete btn.dataset.selected;
|
||||
other_btn.dataset.selected = "";
|
||||
|
||||
tab.setSortDir(sort_dir_str);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue