| | |
| | | |
| | | /** |
| | | * Scroller |
| | | * |
| | | * @deprecated Use treelist widget |
| | | */ |
| | | function rcmail_scroller(list, top, bottom) |
| | | { |
| | |
| | | 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 |
| | |
| | | else if (rcmail.env.task == 'addressbook') { |
| | | rcmail.addEventListener('afterupload-photo', function(){ rcmail_ui.show_popup('uploadform', false); }) |
| | | .gui_object('dragmenu', 'dragmenu'); |
| | | } |
| | | else if (rcmail.env.task == 'settings') { |
| | | if (rcmail.gui_objects.subscriptionlist) |
| | | new rcmail_scroller('#folderlist-content', '#folderlist-title', '#folderlist-footer'); |
| | | } |
| | | }); |
| | | } |