merge of 'ced6d6c76d948b5a599e3ca67efeab0f03c99111'

and 'ed40a4a9e9d163d3485ee9181074ef26215a9f2e'

Monotone-Parent: ced6d6c76d948b5a599e3ca67efeab0f03c99111
Monotone-Parent: ed40a4a9e9d163d3485ee9181074ef26215a9f2e
Monotone-Revision: 909eda2dfa5708b168adc8b891a2217b109db587

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-02T19:11:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-02 19:11:03 +00:00
2 changed files with 16 additions and 14 deletions
+13 -12
View File
@@ -6,7 +6,7 @@ if (typeof textMailAccounts != 'undefined') {
if (textMailAccounts.length > 0)
mailAccounts = textMailAccounts.evalJSON(true);
else
mailAccounts = new Array;
mailAccounts = new Array();
}
var currentMessages = new Array();
@@ -527,7 +527,6 @@ function quotasCallback(http) {
&& http.status == 200) {
var hasQuotas = false;
if (http.responseText.length > 0) {
var quotas = http.responseText.evalJSON(true);
for (var i in quotas) {
hasQuotas = true;
@@ -1285,16 +1284,18 @@ function onLoadMailboxesCallback(http) {
if (http.readyState == 4
&& http.status == 200) {
checkAjaxRequestsState();
var newAccount = buildMailboxes(http.callbackData,
http.responseText);
accounts[http.callbackData] = newAccount;
mailboxTree.addMailAccount(newAccount);
mailboxTree.pendingRequests--;
activeAjaxRequests--;
if (!mailboxTree.pendingRequests) {
updateMailboxTreeInPage();
updateMailboxMenus();
checkAjaxRequestsState();
if (http.responseText.length > 0) {
var newAccount = buildMailboxes(http.callbackData,
http.responseText);
accounts[http.callbackData] = newAccount;
mailboxTree.addMailAccount(newAccount);
mailboxTree.pendingRequests--;
activeAjaxRequests--;
if (!mailboxTree.pendingRequests) {
updateMailboxTreeInPage();
updateMailboxMenus();
checkAjaxRequestsState();
}
}
}