This commit is contained in:
Paula Quispe
2017-06-22 09:51:00 -04:00
parent 1a41cf0537
commit f191a59528

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 { top.opener.location.reload();
if(top.opener) { top.close();
top.opener.location.reload(); } else {
top.close(); //When isIE with ux skin is not open another tab
} javascript:history.back();
} catch(e) {
}
};
} }
}; } else {
javascript:history.back();
}
}
]]></JS> ]]></JS>
</dynaForm> </dynaForm>