| | |
| | | { |
| | | var id = elem.parentNode.id.replace(/^attach/, ''); |
| | | |
| | | $('#attachmenuopen').unbind('click').attr('onclick', '').click(function(e) { |
| | | $('#attachmenuopen').off('click').attr('onclick', '').click(function(e) { |
| | | return rcmail.command('open-attachment', id, this); |
| | | }); |
| | | |
| | | $('#attachmenudownload').unbind('click').attr('onclick', '').click(function() { |
| | | $('#attachmenudownload').off('click').attr('onclick', '').click(function() { |
| | | rcmail.command('download-attachment', id, this); |
| | | }); |
| | | |
| | |
| | | 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 (p.command == 'compose-encrypted') { |
| | | // show the toolbar button for Mailvelope |
| | | $('#messagetoolbar > a.encrypt').show(); |
| | | } |
| | | }, |
| | | |
| | |
| | | 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"></a>').bind('click keypress', function(e) { |
| | | $(this).append($('<a class="drop"></a>').on('click keypress', function(e) { |
| | | if (e.type != 'keypress' || e.which == 13) { |
| | | rcmail_ui.show_attachmentmenu(this, e); |
| | | return false; |