mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Template: Modify list_self_check() JS function to exclude primary Enabled toggle (if any).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user