Monotone-Parent: a9a815362cf2b8cfa777d0a89799463ee2302535

Monotone-Revision: ed40a4a9e9d163d3485ee9181074ef26215a9f2e

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-02T18:56:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2007-11-02 18:56:24 +00:00
parent ce394c512d
commit ad53fa5812

View file

@ -523,10 +523,12 @@ function quotasCallback(http) {
&& http.status == 200) { && http.status == 200) {
var hasQuotas = false; var hasQuotas = false;
var quotas = http.responseText.evalJSON(true); if (http.responseText.length > 0) {
for (var i in quotas) { var quotas = http.responseText.evalJSON(true);
hasQuotas = true; for (var i in quotas) {
break; hasQuotas = true;
break;
}
} }
if (hasQuotas) { if (hasQuotas) {
@ -1279,16 +1281,18 @@ function onLoadMailboxesCallback(http) {
if (http.readyState == 4 if (http.readyState == 4
&& http.status == 200) { && http.status == 200) {
checkAjaxRequestsState(); checkAjaxRequestsState();
var newAccount = buildMailboxes(http.callbackData, if (http.responseText.length > 0) {
http.responseText); var newAccount = buildMailboxes(http.callbackData,
accounts[http.callbackData] = newAccount; http.responseText);
mailboxTree.addMailAccount(newAccount); accounts[http.callbackData] = newAccount;
mailboxTree.pendingRequests--; mailboxTree.addMailAccount(newAccount);
activeAjaxRequests--; mailboxTree.pendingRequests--;
if (!mailboxTree.pendingRequests) { activeAjaxRequests--;
updateMailboxTreeInPage(); if (!mailboxTree.pendingRequests) {
updateMailboxMenus(); updateMailboxTreeInPage();
checkAjaxRequestsState(); updateMailboxMenus();
checkAjaxRequestsState();
}
} }
} }