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">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user