summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-01-09 05:56:43 -0500
committerAleksander Machniak <alec@alec.pl>2015-01-09 05:56:43 -0500
commit1187f60d12db504b13dd3f0156926c5df40cba1e (patch)
tree21ac3247d57e4ff4c8df1a57e1c586590d20def3 /program
parentf6502176f894940aa95c634510dabb2591d1eeb0 (diff)
Build proper quota text when quota 'percent' is undefined
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c792bb64b..ece521861 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6727,7 +6727,7 @@ function rcube_webmail()
this.set_quota = function(content)
{
if (this.gui_objects.quotadisplay && content && content.type == 'text')
- $(this.gui_objects.quotadisplay).html(content.percent+'%').attr('title', content.title);
+ $(this.gui_objects.quotadisplay).text((content.percent||0) + '%').attr('title', content.title);
this.triggerEvent('setquota', content);
this.env.quota_content = content;