summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-12-26 19:33:14 +0000
committerthomascube <thomas@roundcube.net>2011-12-26 19:33:14 +0000
commit847d31060967760f009485dbb80cd588669e21bf (patch)
tree0c0831a26a3a01f44b3d6dfffc2250a297af3092 /skins/larry/ui.js
parentfe1bd5f960d85f19ad639d9a4eee9da2aaffaeb8 (diff)
Complete Larry's mail view with selection menus and quota display
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
*/