alps/themes/alps/assets/helpers.js
Mark Dain e64550207c Identify JavaScript as MIT/Expat for LibreJS
This commit introduces LibreJS compatible `@license' blocks as per
https://www.gnu.org/software/librejs/free-your-javascript.html

The magnet URI can be opened in a BitTorrent client to retrieve a copy
of the MIT/Expat license. Section 3.2.2.1 from the above link has a
list of magnet URIs for various free software licenses.
2021-04-03 09:03:55 -04:00

15 lines
449 B
JavaScript

// @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