From 1187f60d12db504b13dd3f0156926c5df40cba1e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 09 Jan 2015 05:56:43 -0500
Subject: [PATCH] Build proper quota text when quota 'percent' is undefined

---
 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 c792bb6..ece5218 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6727,7 +6727,7 @@
   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;

--
Gitblit v1.9.1