[DE forms][Embedded] Fix Bug 53981

This commit is contained in:
Julia Radzhabova 2021-11-23 14:35:22 +03:00
parent 64f707bc5a
commit 067181a056
4 changed files with 28 additions and 8 deletions

View file

@ -492,8 +492,13 @@ DE.ApplicationController = new(function(){
if (config.customization && config.customization.goback) {
if (config.customization.goback.requestClose && config.canRequestClose)
Common.Gateway.requestClose();
else if (config.customization.goback.url)
window.parent.location.href = config.customization.goback.url;
else if (config.customization.goback.url) {
if (config.customization.goback.blank!==false) {
window.open(config.customization.goback.url, "_blank");
} else {
window.parent.location.href = config.customization.goback.url;
}
}
}
});

View file

@ -1092,8 +1092,13 @@ define([
if (this.appOptions.customization && this.appOptions.customization.goback) {
if (this.appOptions.customization.goback.requestClose && this.appOptions.canRequestClose)
Common.Gateway.requestClose();
else if (this.appOptions.customization.goback.url)
window.parent.location.href = this.appOptions.customization.goback.url;
else if (this.appOptions.customization.goback.url) {
if (this.appOptions.customization.goback.blank!==false) {
window.open(this.appOptions.customization.goback.url, "_blank");
} else {
window.parent.location.href = this.appOptions.customization.goback.url;
}
}
}
break;
case 'download-docx':

View file

@ -330,8 +330,13 @@ PE.ApplicationController = new(function(){
if (config.customization && config.customization.goback) {
if (config.customization.goback.requestClose && config.canRequestClose)
Common.Gateway.requestClose();
else if (config.customization.goback.url)
window.parent.location.href = config.customization.goback.url;
else if (config.customization.goback.url) {
if (config.customization.goback.blank!==false) {
window.open(config.customization.goback.url, "_blank");
} else {
window.parent.location.href = config.customization.goback.url;
}
}
}
});

View file

@ -265,8 +265,13 @@ SSE.ApplicationController = new(function(){
if (config.customization && config.customization.goback) {
if (config.customization.goback.requestClose && config.canRequestClose)
Common.Gateway.requestClose();
else if (config.customization.goback.url)
window.parent.location.href = config.customization.goback.url;
else if (config.customization.goback.url) {
if (config.customization.goback.blank!==false) {
window.open(config.customization.goback.url, "_blank");
} else {
window.parent.location.href = config.customization.goback.url;
}
}
}
});