JS bugfix
This commit is contained in:
parent
57b315c842
commit
1f22ac7042
1 changed files with 7 additions and 6 deletions
|
@ -58,11 +58,12 @@ for (let form of forms) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let accounts = document.querySelector("dl.accounts");
|
let accounts = document.querySelector("dl.accounts");
|
||||||
let toggle = accounts.querySelector("input#show-archived-accounts");
|
if (accounts) {
|
||||||
|
let toggle = accounts.querySelector("input#show-archived-accounts");
|
||||||
if (toggle) {
|
if (toggle) {
|
||||||
accounts.classList.toggle("show-archive", toggle.checked);
|
|
||||||
toggle.addEventListener("change", (event) => {
|
|
||||||
accounts.classList.toggle("show-archive", toggle.checked);
|
accounts.classList.toggle("show-archive", toggle.checked);
|
||||||
});
|
toggle.addEventListener("change", (event) => {
|
||||||
|
accounts.classList.toggle("show-archive", toggle.checked);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue