Build proper quota text when quota 'percent' is undefined

pull/260/head
Aleksander Machniak 10 years ago
parent f6502176f8
commit 1187f60d12

@ -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;

Loading…
Cancel
Save