Enigma: Enable default signing/encryption on a signed/encrypted draft compose
| | |
| | | }); |
| | | } |
| | | |
| | | $.each(['encrypt', 'sign'], function() { |
| | | if (rcmail.env['enigma_force_' + this]) |
| | | $('[name="_enigma_' + this + '"]').prop('checked', true); |
| | | }); |
| | | |
| | | if (rcmail.env.enigma_password_request) { |
| | | rcmail.enigma_password_request(rcmail.env.enigma_password_request); |
| | | } |
| | |
| | | $this->rc->output->show_message($msg, 'error'); |
| | | } |
| | | |
| | | // Check sign/ecrypt options for signed/encrypted drafts |
| | | $this->rc->output->set_env('enigma_force_encrypt', !empty($engine->decryptions)); |
| | | $this->rc->output->set_env('enigma_force_sign', !empty($engine->signatures)); |
| | | |
| | | return $p; |
| | | } |
| | | } |