blob: 73f8ff3f2258c96da032ed72d136d7c2c0e43306 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function check_all() {
const setTo = this.checked;
const chkbox = document.getElementsByClassName('jwm-mail-checkbox');
for (const m of chkbox)
m.checked = setTo;
}
document.addEventListener("DOMContentLoaded", function() {
document.getElementById("check-all").addEventListener("click", check_all);
});
|