| | |
| | | |
| | | window.rcmail && rcmail.addEventListener('init', function(evt) { |
| | | if (rcmail.env.task == 'settings') { |
| | | rcmail.register_command('plugin.enigma', function() { rcmail.goto_url('plugin.enigma') }, true); |
| | | |
| | | if (rcmail.gui_objects.keyslist) { |
| | | rcmail.keys_list = new rcube_list_widget(rcmail.gui_objects.keyslist, |
| | | {multiselect:true, draggable:false, keyboard:false}); |
| | |
| | | e.stopPropagation(); |
| | | }); |
| | | } |
| | | |
| | | $.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); |
| | |
| | | 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 |