diff --git a/skins/elastic/templates/compose.html b/skins/elastic/templates/compose.html index db3f04a43..16b4afb0e 100644 --- a/skins/elastic/templates/compose.html +++ b/skins/elastic/templates/compose.html @@ -50,7 +50,7 @@
- +
@@ -58,21 +58,21 @@
- +
- +
- +
@@ -81,7 +81,7 @@
- +
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 4911fe824..950a29ac8 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -155,6 +155,18 @@ function rcube_elastic_ui() $('#compose' + $(this).attr('id'))[this.value ? 'removeClass' : 'addClass']('hidden'); }); }); + + // We put compose options for outside of the main form + // Because IE/Edge does not support 'form' attribute we'll copy + // inputs into the main form hidden fields + // TODO: Consider doing this for IE/Edge only, just set the 'form' attribute on others + $('#compose-options').find('textarea,input,select').each(function() { + var hidden = $('') + .attr({type: 'hidden', name: $(this).attr('name')}) + .appendTo(rcmail.gui_objects.messageform); + + $(this).on('change', function() { hidden.val($(this).val()); }).change(); + }); }; /**