diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-01-09 05:56:43 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-01-09 05:56:43 -0500 |
commit | 1187f60d12db504b13dd3f0156926c5df40cba1e (patch) | |
tree | 21ac3247d57e4ff4c8df1a57e1c586590d20def3 /program | |
parent | f6502176f894940aa95c634510dabb2591d1eeb0 (diff) |
Build proper quota text when quota 'percent' is undefined
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 2 |
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; |