Monotone-Parent: 7e63e5fdd760a91e91ec6f1759064a5e5c2f267f

Monotone-Revision: 3ad8d11f70ec6e6370751cd72269263405a290a1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-10-23T15:45:41
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-10-23 15:45:41 +00:00
parent b6201ae20a
commit 4c6ce949d6
3 changed files with 7 additions and 25 deletions
+4 -2
View File
@@ -1543,9 +1543,11 @@ function updateMailboxTreeInPage() {
inboxFound = true;
}
}
if (Mailer.quotas) {
if (Mailer.quotas && parseInt(Mailer.quotas.maxQuota) > 0) {
// Build quota indicator, show values in MB
var percents = (Math.round(Mailer.quotas.usedSpace * 10000 / Mailer.quotas.maxQuota) / 100);
var percents = (Math.round(Mailer.quotas.usedSpace * 10000
/ Mailer.quotas.maxQuota)
/ 100);
var level = (percents > 85)? "alert" : (percents > 70)? "warn" : "ok";
var format = labels["quotasFormat"];
var text = format.formatted(percents,