]>
git.datanom.net - qtadmin.git/blob - js/checkbox.js
1 /* vim: set ts=4 tw=4 sw=4 noet: */
3 function checkAction(action
) {
5 var c
= document
.getElementsByName('action');
6 for (var i
= 0; i
< c
.length
; i
++) {
7 if (c
[i
].type
== 'checkbox' && c
[i
].checked
== true) {
11 ids
+= ',' + c
[i
].value
;
15 var url
= 'quarantine.php?op=' + action
+ '&id=' + ids
;
19 function updateAction(chkBtn
) {
20 var checked
= chkBtn
.checked
;
21 var c
= document
.getElementsByName('action');
22 for (var i
= 0; i
< c
.length
; i
++) {
23 if (c
[i
].type
== 'checkbox' && c
[i
].checked
!= checked
) {
24 c
[i
].checked
= checked
;
This page took 0.120152 seconds and 6 git commands to generate.