filters done

This commit is contained in:
2026-02-26 22:56:12 +10:00
parent 4f1c66e838
commit c3996ec6c6
5 changed files with 105 additions and 106 deletions

View File

@@ -4,20 +4,16 @@ document.addEventListener("DOMContentLoaded", function () {
function doInit() {
createTable(buildings, 'list');
const clearFiltersButton = document.getElementById("clearFiltersButton")
const clearFiltersButton = document.getElementById("clearFiltersButton");
clearFiltersButton.addEventListener("click", (event) => {
clearTable("list")
clearFilters(filter);
filterTable(buildings,'list',filter)
})
const applyFiltersButton = document.getElementById("applyFiltersButton")
const applyFiltersButton = document.getElementById("applyFiltersButton");
applyFiltersButton.addEventListener("click", (event) => {
filterTable()
filterTable(buildings,'list',filter)
})
}