Merge branch 'step5' into web-dashboard
# Conflicts: # src/web/static/app.css # src/web/static/app.js
This commit is contained in:
@@ -56,4 +56,12 @@ document.querySelectorAll("table[data-filter]").forEach((table) => {
|
||||
row.hidden = needle !== "" && !row.textContent.toLowerCase().includes(needle);
|
||||
});
|
||||
});
|
||||
||||||| 849231e
|
||||
/* step 5: settings — "reset to default" fills the field with its default */
|
||||
document.addEventListener("click", (event) => {
|
||||
const button = event.target.closest("button[data-reset]");
|
||||
if (!button) return;
|
||||
const input = document.getElementById(button.dataset.reset);
|
||||
if (!input) return;
|
||||
input.value = button.dataset.default;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user