diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-10-22 21:54:39 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-11-18 17:30:22 +0300 |
commit | 52c755207d5d0b9c6b63ac38c2be3fefed87df8c (patch) | |
tree | bff910481e4763d4a1f0c1b0ab72c4cc6d30561a /plugins | |
parent | 3a097e6836293b31a0cf2159dde4b23345ccd32e (diff) |
Enigma: Fix bug where signing option was set to disabled after saving a draft in Elastic skin (#6515)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/enigma/enigma.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/enigma/enigma.js b/plugins/enigma/enigma.js index 07047f87c..0f11af7b3 100644 --- a/plugins/enigma/enigma.js +++ b/plugins/enigma/enigma.js @@ -69,7 +69,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) { rcmail.addEventListener('beforesend', function(props) { rcmail.enigma_beforesend_handler(props); }) .addEventListener('beforesavedraft', function(props) { rcmail.enigma_beforesavedraft_handler(props); }); - $('input,label', $('#enigmamenu')).mouseup(function(e) { + $('#enigmamenu').find('input,label').mouseup(function(e) { // don't close the menu on mouse click inside e.stopPropagation(); }); @@ -80,7 +80,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) { var opt = this, input = $('#enigma' + opt + 'opt'); if (rcmail.env['enigma_force_' + opt]) { - input.prop('checked', true) + input.prop('checked', true); } // Compose status bar in Elastic @@ -503,7 +503,7 @@ rcube_webmail.prototype.enigma_compose_handler = function(props) { var form = this.gui_objects.messageform; - // copy inputs from enigma menu to the form + // copy inputs from enigma menu to the form (not used in Elastic) $('#enigmamenu input').each(function() { var id = this.id + '_cpy', input = $('#' + id); @@ -514,11 +514,6 @@ rcube_webmail.prototype.enigma_compose_handler = function(props) input.val(this.checked ? '1' : ''); }); - - // disable signing when saving drafts - if (this.env.last_action == 'savedraft') { - $('input[name="_enigma_sign"]', form).val(0); - } }; // Import attached keys/certs file |