Merged in bugfix/HOR-3417 (pull request #5754)

HOR-3417

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2017-07-26 15:18:46 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -37,23 +37,23 @@
<BTN_CATCH type="submit"> <BTN_CATCH type="submit">
<en><![CDATA[Claim this case]]></en> <en><![CDATA[Claim this case]]></en>
</BTN_CATCH> </BTN_CATCH>
<BTN_CANCEL type="button" onclick="javascript:history.back()"> <BTN_CANCEL type="button" onclick="redirectHistory();">
<en><![CDATA[Cancel]]></en> <en><![CDATA[Cancel]]></en>
</BTN_CANCEL> </BTN_CANCEL>
<JS type="javascript"> <![CDATA[ <JS type="javascript"> <![CDATA[
var dynaformOnload = function() { function redirectHistory(){
if(getField("isIE").value == "true") { if (Boolean(getField("isIE").value)) {
getField("BTN_CANCEL").setAttribute("onclick",""); if (top.opener) {
getField("BTN_CANCEL").onclick = function(){; //Is open the claim case in another tab
try {
if(top.opener) {
top.opener.location.reload(); top.opener.location.reload();
top.close(); top.close();
} else {
//When isIE with ux skin is not open another tab
javascript:history.back();
} }
} catch(e) { } else {
javascript:history.back();
} }
};
} }
};
]]></JS> ]]></JS>
</dynaForm> </dynaForm>