| | |
| | | { |
| | | var el, cl, container = $('#tabsbar'), |
| | | last_tab = $('span:last', container), |
| | | tab = '#settingstabdefault', |
| | | tab = '#settingstabpreferences', |
| | | action = window.rcmail && rcmail.env.action ? rcmail.env.action : null; |
| | | |
| | | // move About tab to the end |
| | |
| | | |
| | | // get selected tab |
| | | if (action) |
| | | tab = '#settingstab' + (action == 'preferences' ? 'default' : (action.indexOf('identity')>0 ? 'identities' : action.replace(/\./g, ''))); |
| | | tab = '#settingstab' + (action.indexOf('identity')>0 ? 'identities' : action.replace(/\./g, '')); |
| | | |
| | | $(tab).addClass('tablink-selected'); |
| | | $('a', tab).removeAttr('onclick').click(function() { return false; }); |
| | |
| | | && !this.popups[i].toggle |
| | | && (!this.popups[i].editable || !this.target_overlaps(target, this.popups[i].id)) |
| | | && (!this.popups[i].sticky || !rcube_mouse_is_over(evt, rcube_find_object(this.popups[i].id))) |
| | | && !$(target).is('.folder-selector-link') && !$(target).children('.folder-selector-link').length |
| | | ) { |
| | | window.setTimeout('rcmail_ui.show_popup("'+i+'",false);', 50); |
| | | } |
| | |
| | | |
| | | enable_command: function(p) |
| | | { |
| | | if (p.command == 'reply-list') { |
| | | if (p.command == 'reply-list' && rcmail.env.reply_all_mode == 1) { |
| | | var label = rcmail.gettext(p.status ? 'replylist' : 'replyall'); |
| | | $('a.button.replyAll').attr('title', label); |
| | | } |
| | |
| | | else if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') |
| | | // add menu link for each attachment |
| | | $('#attachment-list > li[id^="attach"]').each(function() { |
| | | $(this).append($('<a class="drop">').click(function() { rcmail_ui.show_attachmentmenu(this); })); |
| | | $(this).append($('<a class="drop"></a>').click(function() { rcmail_ui.show_attachmentmenu(this); })); |
| | | }); |
| | | } |
| | | else if (rcmail.env.task == 'addressbook') { |