]> git.datanom.net - qtadmin.git/blobdiff - js/checkbox.js
Handle multi action button
[qtadmin.git] / js / checkbox.js
index d2d516c9663254df9b5d5d3fa80d54a49d0ae1eb..da738c243a077f6c5610540474bc76cf95c89dee 100644 (file)
@@ -1,6 +1,6 @@
 /* vim: set ts=4 tw=4 sw=4 noet: */
 
-function checkAction() {
+function checkAction(action) {
     var ids = '';
     var c = document.getElementsByName('action');
     for (var i = 0; i < c.length; i++) {
@@ -12,6 +12,6 @@ function checkAction() {
             }
         }
     }
-    var url = 'quarantine.php?op=release&id=' + ids;
+    var url = 'quarantine.php?op=' + action + '&id=' + ids;
     location.href=url;
 }
This page took 0.028483 seconds and 5 git commands to generate.