diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 8f8b637273..19fc4a6007 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -66,15 +66,21 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) // Accoring to microsoft, IE 10/11 can only accept a url with 2083 caharacters // therefore we need to send request to compose window with POST method // instead of GET. We create a temporary
').appendTo('body').submit(); - $tmpForm.remove(); - }; + var $tmpForm = jQuery(document.createElement('form')).appendTo('body'); + var $tmpInput = jQuery(document.createElement('input')).attr({name:"preset[mailto]", type:"text", value: uri}); + var $tmpSubmitInput = jQuery(document.createElement('input')).attr({type:"submit"}); + // Set the temporary form's attributes + $tmpForm.attr({target:popup.name, action:"index.php?menuaction=mail.mail_compose.compose", method:"post"}) + .append($tmpInput) + .append($tmpSubmitInput); + $tmpForm.submit(); + // Remove the form after submit + $tmpForm.remove(); } else // simple GET request {