Skip to content

Commit d2a03f4

Browse files
committed
don't show the apply button for pgp if no keys are setup
1 parent 032a2d0 commit d2a03f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/pgp/site.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ var Hm_Pgp = {
314314

315315
$(function() {
316316
if (hm_page_name() == 'compose') {
317-
Hm_Pgp.load_private_keys();
317+
if (($('#pgp_encrypt option').size() + $('#pgp_sign option').size()) == 0) {
318+
$('.pgp_section').hide();
319+
}
318320
$('.pgp_apply').click(function() { Hm_Pgp.process_settings(); return false; });
319321
}
320322
else if (hm_page_name() == 'message') {

0 commit comments

Comments
 (0)