This commit is contained in:
=
2026-03-06 14:23:21 +10:00
parent 627f74838c
commit 64b82e3982
2 changed files with 9 additions and 7 deletions

View File

@@ -29,16 +29,14 @@ function doInit() {
}
sorting.applySortButton.addEventListener("click", () => {
if (!sortTable('list', sorting)) {
clearTable('list');
createTable(ram_sticks, 'list');
sortTable('list', sorting)
}
clearTable('list');
filterTable(ram_sticks, 'list', filters)
sortTable('list', sorting)
});
sorting.resetSortButton.addEventListener("click", () => {
resetSort(sorting);
clearTable('list');
createTable(ram_sticks, 'list');
filterTable(ram_sticks, 'list', filters)
});
}
@@ -84,6 +82,10 @@ const updateOptions = (current_index, sort_form) => {
elem.disabled |= elem_collection[current_index-1].value==0;
}
if(elem.disabled){
elem.value = 0;
}
save_val = 0;
if (!used_options_list.includes(all_fields[elem.value - 1])) {
save_val = elem.value;

View File

@@ -32,7 +32,7 @@ const createSortArr = (data) => {
return sortArr;
};
const numberColumns = [4, 5]
const numberColumns = [2, 4, 5]
const sortTable = (idTable, formData) => {