mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
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:
+3
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user