aboutsummaryrefslogblamecommitdiff
path: root/themes/alps/assets/helpers.js
blob: cc092ce7ad2df2a0ace25efe77c56b2092ed6d22 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                                           






                                                                                         
                 

           

               
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat

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;
		}
	});
}

// @license-end