Add disable all button to email notification settings

This commit is contained in:
rubenwardy
2024-03-05 18:05:13 +00:00
parent 76638ad878
commit a94c398633
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// @author rubenwardy
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
"use strict";
const disableAll = document.getElementById("disable-all");
disableAll.classList.remove("d-none");
disableAll.addEventListener("click", () => {
document.querySelectorAll("input[type='checkbox']").forEach(x => { x.checked = false; });
});