|
|
@ -23,7 +23,7 @@ define('admin/modules/checkboxRowSelector', function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const checkboxes = $checkboxEl.closest('tr').find('input:not([disabled])').toArray();
|
|
|
|
const checkboxes = $checkboxEl.closest('tr').find('input:not([disabled])').toArray();
|
|
|
|
const $toggler = $(checkboxes.shift());
|
|
|
|
const $toggler = $(checkboxes.shift());
|
|
|
|
const rowState = checkboxes.every(el => el.checked);
|
|
|
|
const rowState = checkboxes.length && checkboxes.every(el => el.checked);
|
|
|
|
$toggler.prop('checked', rowState);
|
|
|
|
$toggler.prop('checked', rowState);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|