aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/assets/helpers.js
blob: 902fd001dfbd2f48b30aa51e5e2d7a9caaa9868a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
const check_all = document.getElementById("action-checkbox-all");
if (check_all) {
	check_all.style.display = "inherit";
	check_all.addEventListener("click", ev => {
		const inputs = document.querySelectorAll(".message-list-checkbox input");
		for (let i = 0; i < inputs.length; i++) {
			inputs[i].checked = ev.target.checked;
		}
	});
}