Customization goback parameter doesn't depend of license.
This commit is contained in:
parent
0bdf8570e1
commit
89cf77c172
|
@ -208,8 +208,6 @@ define([
|
|||
appConfig = mode;
|
||||
|
||||
var me = this;
|
||||
if ( !(me.branding && me.branding.goback && me.branding.goback.text) )
|
||||
me.btnGoBack.updateHint(me.textBack);
|
||||
me.btnGoBack.on('click', function (e) {
|
||||
Common.NotificationCenter.trigger('goback');
|
||||
});
|
||||
|
@ -482,10 +480,6 @@ define([
|
|||
element.css({'background-image': 'none', width: 'auto'});
|
||||
}
|
||||
}
|
||||
|
||||
if ( !!value.goback && value.goback.text) {
|
||||
this.btnGoBack.updateHint(value.goback.text);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -527,10 +521,12 @@ define([
|
|||
this.labelDocName.text(_name);
|
||||
},
|
||||
|
||||
setCanBack: function (value) {
|
||||
setCanBack: function (value, text) {
|
||||
this.canBack = value;
|
||||
|
||||
this.btnGoBack[value ? 'show' : 'hide']();
|
||||
if (value)
|
||||
this.btnGoBack.updateHint((text && typeof text == 'string') ? text : this.textBack);
|
||||
},
|
||||
|
||||
getCanBack: function () {
|
||||
|
|
|
@ -313,7 +313,7 @@ define([
|
|||
this.plugins = this.editorConfig.plugins;
|
||||
|
||||
appHeader = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
appHeader.setCanBack(this.appOptions.canBackToFolder === true);
|
||||
appHeader.setCanBack(this.appOptions.canBackToFolder === true, (this.appOptions.canBackToFolder) ? this.editorConfig.customization.goback.text : '');
|
||||
|
||||
if (this.editorConfig.lang)
|
||||
this.api.asc_setLocale(this.editorConfig.lang);
|
||||
|
|
|
@ -292,7 +292,7 @@ define([
|
|||
this.plugins = this.editorConfig.plugins;
|
||||
|
||||
appHeader = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
appHeader.setCanBack(this.appOptions.canBackToFolder === true);
|
||||
appHeader.setCanBack(this.appOptions.canBackToFolder === true, (this.appOptions.canBackToFolder) ? this.editorConfig.customization.goback.text : '');
|
||||
|
||||
if (this.editorConfig.lang)
|
||||
this.api.asc_setLocale(this.editorConfig.lang);
|
||||
|
|
|
@ -307,7 +307,7 @@ define([
|
|||
this.plugins = this.editorConfig.plugins;
|
||||
|
||||
this.headerView = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
this.headerView.setCanBack(this.appOptions.canBackToFolder === true);
|
||||
this.headerView.setCanBack(this.appOptions.canBackToFolder === true, (this.appOptions.canBackToFolder) ? this.editorConfig.customization.goback.text : '');
|
||||
|
||||
var value = Common.localStorage.getItem("sse-settings-reg-settings");
|
||||
if (value!==null)
|
||||
|
|
Loading…
Reference in a new issue