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:
@@ -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","");
|
|
||||||
getField("BTN_CANCEL").onclick = function(){;
|
|
||||||
try {
|
|
||||||
if (top.opener) {
|
if (top.opener) {
|
||||||
|
//Is open the claim case in another tab
|
||||||
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user