Feature #2 : Role With Permission Selection
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const selectAll = document.querySelector('#select_all');
|
||||
|
||||
if (selectAll) {
|
||||
const allCheckboxes = document.querySelectorAll('[type="checkbox"]');
|
||||
|
||||
// Handle check state
|
||||
selectAll.addEventListener('change', e => {
|
||||
// Apply check state to all checkboxes
|
||||
allCheckboxes.forEach(c => {
|
||||
c.checked = e.target.checked;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user