Fixes loading javascript listeners
This commit is contained in:
parent
50e5cf11b4
commit
c31bf1f0c8
4 changed files with 18 additions and 24 deletions
|
@ -1,11 +1,4 @@
|
|||
// Toggle all checkboxes.
|
||||
window.onload = function() {
|
||||
document
|
||||
.querySelectorAll('[data-action="toggle-all"]')
|
||||
.forEach(input => {
|
||||
input.addEventListener('change', toggleAllCheckboxes);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Toggle all descendant checkboxes of a target.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue