Просмотр исходного кода

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

fusionate 2 лет назад
Родитель
Сommit
54ac82a93e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      themes/default/template.php

+ 1 - 1
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;
 				}
 			}