Quarantine plugin update:

All functions are back. Big refactoring of this module, the last thing that remains
is the need of DB optimization for big tables.
This commit is contained in:
tonio
2010-04-19 14:31:36 +02:00
parent 5ff96dfa8d
commit ffbb054089
9 changed files with 84 additions and 104 deletions
+3 -6
View File
@@ -39,7 +39,7 @@ check_anchor = function() {
new Request.JSON({url: query, onSuccess: function(resp) {
callback = ($defined(resp.callback)) ? resp.callback : "default";
callbacks[callback](resp);
infobox.notice("Done");
infobox.notice("Done");
infobox.hide(1);
}}).get();
}
@@ -268,11 +268,8 @@ toggleSelection = function(id, value) {
});
}
checkSelection = function(id, text) {
var getout = $$("input[name=" + id + "]").every(function(item, index) {
return item.checked == false;
});
if (getout) {
checkTableSelection = function(text) {
if (!$$("tr[class*=table-tr-selected]").length) {
return false;
}
return confirm(text);