From 1187f60d12db504b13dd3f0156926c5df40cba1e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 9 Jan 2015 05:56:43 -0500 Subject: Build proper quota text when quota 'percent' is undefined --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') 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; -- cgit v1.2.3