]> git.datanom.net - qtadmin.git/blob - js/checkbox.js
d2d516c9663254df9b5d5d3fa80d54a49d0ae1eb
[qtadmin.git] / js / checkbox.js
1 /* vim: set ts=4 tw=4 sw=4 noet: */
2
3 function checkAction() {
4 var ids = '';
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) {
8 if (ids == '') {
9 ids = c[i].value;
10 } else {
11 ids += ',' + c[i].value;
12 }
13 }
14 }
15 var url = 'quarantine.php?op=release&id=' + ids;
16 location.href=url;
17 }
This page took 0.055596 seconds and 4 git commands to generate.