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