diff options
Diffstat (limited to 'app/Resources/static/themes/material/index.js')
-rwxr-xr-x | app/Resources/static/themes/material/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js index da055e80..1c28401d 100755 --- a/app/Resources/static/themes/material/index.js +++ b/app/Resources/static/themes/material/index.js | |||
@@ -105,4 +105,17 @@ $(document).ready(() => { | |||
105 | $('.nav-panels').css('background', 'transparent'); | 105 | $('.nav-panels').css('background', 'transparent'); |
106 | return false; | 106 | return false; |
107 | }); | 107 | }); |
108 | |||
109 | const mainCheckboxes = document.querySelectorAll('[data-js="checkboxes-toggle"]'); | ||
110 | if (mainCheckboxes.length) { | ||
111 | [...mainCheckboxes].forEach((el) => { | ||
112 | el.addEventListener('click', () => { | ||
113 | const checkboxes = document.querySelectorAll(el.dataset.toggle); | ||
114 | [...checkboxes].forEach((checkbox) => { | ||
115 | const checkboxClone = checkbox; | ||
116 | checkboxClone.checked = el.checked; | ||
117 | }); | ||
118 | }); | ||
119 | }); | ||
120 | } | ||
108 | }); | 121 | }); |