From bc5023f18c231350ff4c2cfca9ad20b983e7592b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 29 May 2015 15:33:00 +0000 Subject: [PATCH] Keep the fix from previous commit only for IE --- phpgwapi/js/jsapi/egw_open.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 6f1571edef..8f8b637273 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -66,14 +66,14 @@ 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
and will post emails. - if (uri.length > 2083) + if (uri.length > 2083 && navigator.userAgent.match(/Trident|MSIE|Edge/,"g")) { popup = egw.open('','mail','add','','compose__','mail'); - popup.onload = function(){ - var emails = uri.replace('mailto:',''); + popup.onload = new function(){ // Build a temp Form and submit right away - jQuery('\n\ -
').submit(); + var $tmpForm = jQuery('
\n\ +
').appendTo('body').submit(); + $tmpForm.remove(); }; } else // simple GET request