summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 7c0b0354b..c24915eef 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -96,8 +96,10 @@ function rcube_mail_ui()
orientation:'h', relative:true, start:310, min:150, size:0, offset:-22 });
if (previewframe)
mailviewsplit.init();
+
+ rcmail.addEventListener('setquota', update_quota);
}
-
+
if ($('#mailview-left').length) {
new rcube_splitter({ id:'mailviewsplitterv', p1:'#mailview-left', p2:'#mailview-right',
orientation:'v', relative:true, start:248, min:150, size:12, callback:render_mailboxlist, render:resize_leftcol }).init();
@@ -227,6 +229,13 @@ function rcube_mail_ui()
}
+ function update_quota(p)
+ {
+ var y = p.total ? Math.ceil(p.percent / 100 * 20) * 24 : 0;
+ $('#quotadisplay').css('background-position', '0 -'+y+'px');
+ }
+
+
/**
* Trigger for popup menus
*/