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) {
var hasQuotas = false;
var quotas = http.responseText.evalJSON(true);
for (var i in quotas) {
hasQuotas = true;
break;
if (http.responseText.length > 0) {
var quotas = http.responseText.evalJSON(true);
for (var i in quotas) {
hasQuotas = true;
break;
}
}
if (hasQuotas) {
@ -1279,16 +1281,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();
}
}
}