diff --git a/workflow/engine/templates/processes/main.js b/workflow/engine/templates/processes/main.js index 1ec40dd19..e835e14a3 100755 --- a/workflow/engine/templates/processes/main.js +++ b/workflow/engine/templates/processes/main.js @@ -574,7 +574,7 @@ function saveProcess() if (projectType == 'classicProject') { location.href = 'processes_Map?PRO_UID='+resp.result.PRO_UID; } else { - if ( navigator.userAgent.indexOf('MSIE') !=-1 ) { + if ( (navigator.userAgent.indexOf("MSIE")!=-1) || (navigator.userAgent.indexOf("Trident")!=-1) ){ if ( typeof(winDesigner) == "undefined" || winDesigner.closed ){ winDesigner = window.open( "../designer?prj_uid="+resp.result.PRO_UID, @@ -635,7 +635,7 @@ editProcess = function(typeParam) url = 'processes_Map?PRO_UID=' + pro_uid; } - if ( (navigator.userAgent.indexOf('MSIE') !=-1) && (type == "bpmn") ) { + if ( ((navigator.userAgent.indexOf("MSIE")!=-1) || (navigator.userAgent.indexOf("Trident")!=-1)) && (type == "bpmn") ) { if (typeof(winDesigner) == "undefined" || winDesigner.closed){ winDesigner = window.open( url, @@ -951,7 +951,7 @@ importProcessExistGroup = function() var sNewProUid = resp_.sNewProUid; if (typeof(resp_.project_type) != "undefined" && resp_.project_type == "bpmn") { - if ( navigator.userAgent.indexOf('MSIE') !=-1 ) { + if ((navigator.userAgent.indexOf("MSIE")!=-1) || (navigator.userAgent.indexOf("Trident")!=-1) ) { if (typeof(winDesigner) == "undefined" || winDesigner.closed){ winDesigner = window.open( "../designer?prj_uid=" + sNewProUid, @@ -1097,7 +1097,7 @@ importProcessExistProcess = function() if (resp_.ExistGroupsInDatabase == 0) { if (typeof(resp_.project_type) != "undefined" && resp_.project_type == "bpmn") { - if ( navigator.userAgent.indexOf('MSIE') !=-1 ) { + if ( (navigator.userAgent.indexOf("MSIE")!=-1) || (navigator.userAgent.indexOf("Trident")!=-1)) { if (typeof(winDesigner) == "undefined" || winDesigner.closed){ winDesigner = window.open( "../designer?prj_uid=" + sNewProUid, @@ -1235,7 +1235,7 @@ importProcess = function() var sNewProUid = resp_.sNewProUid; if (typeof(resp_.project_type) != "undefined" && resp_.project_type == "bpmn") { - if ( navigator.userAgent.indexOf('MSIE') !=-1 ) { + if ((navigator.userAgent.indexOf("MSIE")!=-1) || (navigator.userAgent.indexOf("Trident")!=-1)) { if (typeof(winDesigner) == "undefined" || winDesigner.closed){ winDesigner = window.open( "../designer?prj_uid=" + sNewProUid,