summaryrefslogtreecommitdiff
path: root/skins/classic
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-06-26 12:32:52 +0200
committerAleksander Machniak <alec@alec.pl>2014-06-26 12:32:52 +0200
commitc5f06896d4db5f2479b5988cb2cea6ef0fa80cad (patch)
tree27a34963be1c24bb8e6885ae7e4cc9186783d60c /skins/classic
parent1a3132366e42a514ea9c471928eef8a63953125a (diff)
Display full quota information in popup (#1485769, #1486604)
Diffstat (limited to 'skins/classic')
-rw-r--r--skins/classic/common.css29
-rw-r--r--skins/classic/functions.js12
2 files changed, 41 insertions, 0 deletions
diff --git a/skins/classic/common.css b/skins/classic/common.css
index 273defe19..6e9986165 100644
--- a/skins/classic/common.css
+++ b/skins/classic/common.css
@@ -1236,6 +1236,35 @@ fieldset.tabbed
.quota_text_mid { color: #666; }
.quota_text_low { color: #666; }
+table.quota-info {
+ border-spacing: 0;
+ border-collapse: collapse;
+ table-layout: fixed;
+ margin: 2px;
+}
+
+table.quota-info td,
+table.quota-info th {
+ border: 1px solid #999;
+ padding: 2px 3px;
+ text-align: center;
+ min-width: 80px;
+ color: #333;
+ font-size: 11px;
+}
+
+table.quota-info th {
+ font-weight: bold;
+ background-color: #ddd;
+}
+
+table.quota-info td.name {
+ text-align: left;
+}
+
+table.quota-info td.root {
+ font-style: italic;
+}
/********** TinyMCE styles **********/
.mce-btn-small button
diff --git a/skins/classic/functions.js b/skins/classic/functions.js
index 4fef61151..7f2b8b4fb 100644
--- a/skins/classic/functions.js
+++ b/skins/classic/functions.js
@@ -879,6 +879,18 @@ function fit_string_to_size(str, elem, len)
function update_quota(data)
{
percent_indicator(rcmail.gui_objects.quotadisplay, data);
+
+ if (data.table) {
+ var menu = $('#quotamenu');
+
+ if (!menu.length)
+ menu = $('<div id="quotamenu" class="popupmenu">').appendTo($('body'));
+
+ menu.html(data.table);
+ $('#quotaimg').css('cursor', 'pointer').off('click').on('click', function(e) {
+ return rcmail.command('menu-open', 'quotamenu', e.target, e);
+ });
+ }
};
// percent (quota) indicator