]> git.datanom.net - qtadmin.git/blobdiff - js/checkbox.js
add more debug info
[qtadmin.git] / js / checkbox.js
index da738c243a077f6c5610540474bc76cf95c89dee..0bdce8ea512979287a341773c629ac776d79598e 100644 (file)
@@ -15,3 +15,13 @@ function checkAction(action) {
     var url = 'quarantine.php?op=' + action + '&id=' + ids;
     location.href=url;
 }
+
+function updateAction(chkBtn) {
+    var checked = chkBtn.checked;
+    var c = document.getElementsByName('action');
+    for (var i = 0; i < c.length; i++) {
+        if (c[i].type == 'checkbox' && c[i].checked != checked) {
+            c[i].checked = checked;
+        }
+    }
+}
This page took 0.027911 seconds and 5 git commands to generate.