From a96b721025000c42870562f37f18b74d472e988b Mon Sep 17 00:00:00 2001 From: fusionate Date: Tue, 13 Jun 2023 22:54:48 +0000 Subject: [PATCH] Template: Modify list_self_check() JS function to exclude primary Enabled toggle (if any). --- themes/default/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/template.php b/themes/default/template.php index 060f0fd374..105da843fa 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -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; } }