mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 08:56:45 +00:00
UI tweak
This commit is contained in:
parent
7234c22d2f
commit
2943ca9365
@ -27,12 +27,14 @@ function toggleSearchBar() {
|
||||
|
||||
$.jsonPost("i").then(resp => {
|
||||
resp["indices"].forEach(idx => {
|
||||
$("#indices").append($("<option>")
|
||||
const opt = $("<option>")
|
||||
.attr("value", idx.id)
|
||||
.attr("selected", !idx.name.includes("(nsfw)"))
|
||||
.append(idx.name)
|
||||
);
|
||||
selectedIndices.push(idx.id);
|
||||
.append(idx.name);
|
||||
if (!idx.name.includes("(nsfw)")) {
|
||||
opt.attr("selected", !idx.name.includes("(nsfw)"))
|
||||
selectedIndices.push(idx.id);
|
||||
}
|
||||
$("#indices").append(opt);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user