Aleksander Machniak
2016-05-16 3d6d0389385b2a52ae83c8e09eadbd99c97c1113
skins/classic/functions.js
@@ -401,11 +401,11 @@
{
  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);
  });
@@ -639,6 +639,10 @@
  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();
  }
},
@@ -1050,7 +1054,7 @@
      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;