[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,9 +492,14 @@ 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)
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;
}
}
}
});
var downloadAs = function(format){

View file

@ -1092,9 +1092,14 @@ 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)
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':
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.DOCX));

View file

@ -330,9 +330,14 @@ 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)
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;
}
}
}
});
var $pagenum = $('#page-number');

View file

@ -265,9 +265,14 @@ 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)
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;
}
}
}
});
$('#id-btn-zoom-in').on('click', function () {