For Bug 36883 ("goback" in current page when get critical error)
This commit is contained in:
parent
4fc2623844
commit
654902b5d7
|
@ -591,10 +591,10 @@ define([
|
|||
app.getController('LeftMenu').SetDisabled(disable, true);
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||
var href = this.appOptions.customization.goback.url;
|
||||
if (this.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && this.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -1452,7 +1452,7 @@ define([
|
|||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||
config.callback = function(btn) {
|
||||
if (btn == 'ok')
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
if (id == Asc.c_oAscError.ID.DataEncrypted) {
|
||||
|
|
|
@ -316,9 +316,9 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
var href = this.appOptions.customization.goback.url;
|
||||
if (this.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && this.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -906,7 +906,7 @@ define([
|
|||
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||
config.callback = function() {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
if (id == Asc.c_oAscError.ID.DataEncrypted) {
|
||||
|
|
|
@ -407,11 +407,11 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
var me = this;
|
||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||
var href = me.appOptions.customization.goback.url;
|
||||
if (me.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && me.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -1185,9 +1185,9 @@ define([
|
|||
|
||||
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp && typeof id !== 'string') {
|
||||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||
config.fn = function(btn) {
|
||||
config.callback = function(btn) {
|
||||
if (btn == 'ok') {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -306,9 +306,9 @@ define([
|
|||
this.api.asc_DownloadAs(Asc.c_oAscFileType.PPTX, true);
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
var href = this.appOptions.customization.goback.url;
|
||||
if (this.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && this.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -856,7 +856,7 @@ define([
|
|||
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||
config.callback = function() {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
if (id == Asc.c_oAscError.ID.DataEncrypted) {
|
||||
|
|
|
@ -434,11 +434,11 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
var me = this;
|
||||
if ( !Common.Controllers.Desktop.process('goback') ) {
|
||||
var href = me.appOptions.customization.goback.url;
|
||||
if (me.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && me.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -1350,7 +1350,7 @@ define([
|
|||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||
config.callback = function(btn) {
|
||||
if (btn == 'ok') {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -309,9 +309,9 @@ define([
|
|||
this.api.asc_DownloadAs(Asc.c_oAscFileType.XLSX, true);
|
||||
},
|
||||
|
||||
goBack: function() {
|
||||
goBack: function(current) {
|
||||
var href = this.appOptions.customization.goback.url;
|
||||
if (this.appOptions.customization.goback.blank!==false) {
|
||||
if (!current && this.appOptions.customization.goback.blank!==false) {
|
||||
window.open(href, "_blank");
|
||||
} else {
|
||||
parent.location.href = href;
|
||||
|
@ -990,7 +990,7 @@ define([
|
|||
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||
config.callback = function() {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
}
|
||||
}
|
||||
if (id == Asc.c_oAscError.ID.DataEncrypted) {
|
||||
|
|
Loading…
Reference in a new issue