fix sort logic
This commit is contained in:
parent
a6806d22da
commit
97e747fc61
@ -332,7 +332,7 @@ window.onload = () => {
|
||||
let gridContainer, sidebarOptions, numberInput, rangeInput, table, images, vpaddin_input, filter, exactmatch_input;
|
||||
|
||||
const switchFrequency = loadFromLocalStorage("rendertest_switchfrequency", 700);
|
||||
const tableSort = loadFromLocalStorage("rendertest_tablesort", false);
|
||||
let tableSort = loadFromLocalStorage("rendertest_tablesort", false);
|
||||
const sidebarPos = loadFromLocalStorage("rendertest_sidebarpos", "left");
|
||||
const sidebarMode = loadFromLocalStorage("rendertest_sidebarmode", "minimize");
|
||||
const sidebarSize = loadFromLocalStorage("rendertest_sidebarsize", "default");
|
||||
@ -543,12 +543,15 @@ window.onload = () => {
|
||||
Tag("label", null, null, [
|
||||
Tag("input", {"type": "radio", "name": "sort_table", "value": "yes", ...uglyChecked(tableSort)}, null, null, "input", (e) => {
|
||||
buildData(table, images, data, true, filter.value, exactmatch_input.checked);
|
||||
// TODO: rewrite use reactive programming
|
||||
tableSort = true;
|
||||
}),
|
||||
Text(" yes")
|
||||
]),
|
||||
Tag("label", null, null, [
|
||||
Tag("input", {"type": "radio", "name": "sort_table", "value": "no", ...uglyChecked(!tableSort)}, null, null, "input", (e) => {
|
||||
buildData(table, images, data, false, filter.value, exactmatch_input.checked);
|
||||
tableSort = false;
|
||||
}),
|
||||
Text(" no")
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user