| | |
| | | }); |
| | | } |
| | | |
| | | $.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); |
| | | } |
| | |
| | | |
| | | // send request to server |
| | | rcmail.http_post('plugin.enigmakeys', post, lock); |
| | | }).catch(function(error) { |
| | | }, function(error) { |
| | | // failure |
| | | rcmail.set_busy(false, null, lock); |
| | | rcmail.display_message(rcmail.get_label('enigma.keygenerateerror'), 'error'); |
| | |
| | | if (!keys.length) |
| | | return; |
| | | |
| | | this.goto_url('plugin.enigmakeys', {_a: 'export', _keys: keys}); |
| | | this.goto_url('plugin.enigmakeys', {_a: 'export', _keys: keys}, false, true); |
| | | }; |
| | | |
| | | // Submit key(s) import form |