Template: Modify list_self_check() JS function to exclude primary Enabled toggle (if any).

This commit is contained in:
fusionate 2023-06-13 22:54:48 +00:00
parent 49e8aa9863
commit a96b721025
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,7 @@
function list_self_check(checkbox_id) {
var inputs = document.getElementsByTagName('input');
for (var i = 0, max = inputs.length; i < max; i++) {
if (inputs[i].type === 'checkbox') {
if (inputs[i].type === 'checkbox' && inputs[i].name.search['enabled'] == -1) {
inputs[i].checked = false;
}
}