|
|
@ -2259,13 +2259,14 @@ define([
|
|
|
|
prettyUsage = Messages._getKey('formattedMB', [usage]);
|
|
|
|
prettyUsage = Messages._getKey('formattedMB', [usage]);
|
|
|
|
prettyLimit = Messages._getKey('formattedMB', [limit]);
|
|
|
|
prettyLimit = Messages._getKey('formattedMB', [limit]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (quota < 0.8) { $usage.addClass('cp-limit-usage-normal'); }
|
|
|
|
if (quota < 0.8) { $usage.addClass('cp-limit-usage-normal'); }
|
|
|
|
else if (quota < 1) { $usage.addClass('cp-limit-usage-warning'); }
|
|
|
|
else if (quota < 1) { $usage.addClass('cp-limit-usage-warning'); }
|
|
|
|
else { $usage.addClass('cp-limit-usage-above'); }
|
|
|
|
else { $usage.addClass('cp-limit-usage-above'); }
|
|
|
|
var $text = $('<span>', {'class': 'cp-limit-usage-text'});
|
|
|
|
var $text = $('<span>', {'class': 'cp-limit-usage-text'});
|
|
|
|
$text.text(usage + ' / ' + prettyLimit);
|
|
|
|
$text.html(Messages._getKey('storageStatus', [prettyUsage, prettyLimit]));
|
|
|
|
$limit.append($usage).append($text);
|
|
|
|
$container.prepend($text);
|
|
|
|
|
|
|
|
$limit.append($usage);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var updateUsage = Util.notAgainForAnother(function () {
|
|
|
|
var updateUsage = Util.notAgainForAnother(function () {
|
|
|
|