Эх сурвалжийг харах

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

fusionate 2 жил өмнө
parent
commit
54ac82a93e

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