| | |
| | | && !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') { |