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