Skip to content

Commit

Permalink
don't show the apply button for pgp if no keys are setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Oct 10, 2018
1 parent 032a2d0 commit d2a03f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pgp/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ var Hm_Pgp = {

$(function() {
if (hm_page_name() == 'compose') {
Hm_Pgp.load_private_keys();
if (($('#pgp_encrypt option').size() + $('#pgp_sign option').size()) == 0) {
$('.pgp_section').hide();
}
$('.pgp_apply').click(function() { Hm_Pgp.process_settings(); return false; });
}
else if (hm_page_name() == 'message') {
Expand Down

0 comments on commit d2a03f4

Please sign in to comment.