Elastic: Remove redundant code

pull/6405/head
Aleksander Machniak 6 years ago
parent f85a33f150
commit 2d172126e7

@ -1410,7 +1410,7 @@ function rcube_elastic_ui()
case 'compose-encrypted': case 'compose-encrypted':
// show the toolbar button for Mailvelope // show the toolbar button for Mailvelope
if (args.status) { if (args.status) {
$('a.button.encrypt').parent().show(); $('a.button.encrypt:not(.icon)').parent().show();
} }
break; break;
@ -1418,11 +1418,6 @@ function rcube_elastic_ui()
// enable selector for encrypt and sign // enable selector for encrypt and sign
$('#encryption-menu-button').show(); $('#encryption-menu-button').show();
break; break;
case 'mark':
// show the toolbar button for Mailvelope
$('a.button.markmessage')[args.status ? 'removeClass' : 'addClass']('disabled');
break;
} }
} }
}; };

Loading…
Cancel
Save