mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 22:35:22 +00:00
See Changelog.
Monotone-Parent: 2b28f6d0a82dd762775a558cb05973125df10b61 Monotone-Revision: f3b51cf476c6230ef82b433a28fb5b9fc99ecba7 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-12-08T19:57:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2236,8 +2236,18 @@ function onMenuEmptyTrash(event) {
|
||||
|
||||
function onMenuEmptyTrashCallback(http) {
|
||||
if (http.readyState == 4
|
||||
&& isHttpStatus204(http.status))
|
||||
&& isHttpStatus204(http.status)) {
|
||||
deleteCachedMailboxByType('trash');
|
||||
// Reload the folder tree if there was folders in the trash
|
||||
var nodes = $("mailboxTree").select("DIV[datatype=trash]");
|
||||
for (var i = 0; i < nodes.length; i++) {
|
||||
var sibling = nodes[i].next();
|
||||
if (sibling && sibling.hasClassName("clip")) {
|
||||
initMailboxTree();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
showAlertDialog(http.callbackData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user