Remove customization parameter for hiding header (customization.header)
This commit is contained in:
parent
703be670ab
commit
2c7662cd72
|
@ -116,7 +116,6 @@
|
|||
rightMenu: true,
|
||||
hideRightMenu: false, // hide or show right panel on first loading
|
||||
toolbar: true,
|
||||
header: true,
|
||||
statusBar: true,
|
||||
autosave: true,
|
||||
forcesave: false,
|
||||
|
|
|
@ -70,7 +70,6 @@ define([
|
|||
toolbar: '#viewport #toolbar',
|
||||
leftMenu: '#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings',
|
||||
rightMenu: '#viewport #right-menu',
|
||||
header: '#viewport #header',
|
||||
statusBar: '#statusbar'
|
||||
};
|
||||
|
||||
|
@ -1182,21 +1181,12 @@ define([
|
|||
applyModeCommonElements: function() {
|
||||
window.editor_elements_prepared = true;
|
||||
|
||||
// var value = Common.localStorage.getItem("de-hidden-title");
|
||||
// value = this.appOptions.isEdit && (value!==null && parseInt(value) == 1);
|
||||
|
||||
var app = this.getApplication(),
|
||||
viewport = app.getController('Viewport').getView('Viewport'),
|
||||
// headerView = app.getController('Viewport').getView('Common.Views.Header'),
|
||||
statusbarView = app.getController('Statusbar').getView('Statusbar'),
|
||||
documentHolder = app.getController('DocumentHolder').getView(),
|
||||
toolbarController = app.getController('Toolbar');
|
||||
|
||||
// if (headerView) {
|
||||
// headerView.setHeaderCaption(this.appOptions.isEdit ? 'Document Editor' : 'Document Viewer');
|
||||
// headerView.setVisible(!this.appOptions.nativeApp && !value && !this.appOptions.isDesktopApp);
|
||||
// }
|
||||
|
||||
viewport && viewport.setMode(this.appOptions);
|
||||
statusbarView && statusbarView.setMode(this.appOptions);
|
||||
toolbarController.setMode(this.appOptions);
|
||||
|
|
|
@ -2032,16 +2032,6 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
// onHideTitleBar: function(item, checked) {
|
||||
// var headerView = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
// headerView && headerView.setVisible(!checked);
|
||||
//
|
||||
// Common.localStorage.setItem('de-hidden-title', checked ? 1 : 0);
|
||||
//
|
||||
// Common.NotificationCenter.trigger('layout:changed', 'header');
|
||||
// Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||
// },
|
||||
|
||||
_clearBullets: function() {
|
||||
this.toolbar.btnMarkers.toggle(false, true);
|
||||
this.toolbar.btnNumbers.toggle(false, true);
|
||||
|
|
|
@ -70,7 +70,6 @@ define([
|
|||
toolbar: '#viewport #toolbar',
|
||||
leftMenu: '#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings',
|
||||
rightMenu: '#viewport #right-menu',
|
||||
header: '#viewport #header',
|
||||
statusBar: '#statusbar'
|
||||
};
|
||||
|
||||
|
@ -923,18 +922,12 @@ define([
|
|||
applyModeCommonElements: function() {
|
||||
window.editor_elements_prepared = true;
|
||||
|
||||
// var value = Common.localStorage.getItem("pe-hidden-title");
|
||||
// value = this.appOptions.isEdit && (value!==null && parseInt(value) == 1);
|
||||
|
||||
var app = this.getApplication(),
|
||||
viewport = app.getController('Viewport').getView('Viewport'),
|
||||
statusbarView = app.getController('Statusbar').getView('Statusbar'),
|
||||
documentHolder = app.getController('DocumentHolder').getView('DocumentHolder'),
|
||||
toolbarController = app.getController('Toolbar');
|
||||
|
||||
// appHeader.setHeaderCaption(this.appOptions.isEdit ? 'Presentation Editor' : 'Presentation Viewer');
|
||||
// appHeader.setVisible(!this.appOptions.nativeApp && !value && !this.appOptions.isDesktopApp);
|
||||
|
||||
viewport && viewport.setMode(this.appOptions, true);
|
||||
statusbarView && statusbarView.setMode(this.appOptions);
|
||||
toolbarController.setMode(this.appOptions);
|
||||
|
|
|
@ -1541,16 +1541,6 @@ define([
|
|||
Common.component.Analytics.trackEvent('ToolBar', 'Style');
|
||||
},
|
||||
|
||||
onHideTitleBar: function(item, checked) {
|
||||
var headerView = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
headerView && headerView.setVisible(!checked);
|
||||
|
||||
Common.localStorage.setItem('pe-hidden-title', checked ? 1 : 0);
|
||||
|
||||
Common.NotificationCenter.trigger('layout:changed', 'header');
|
||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||
},
|
||||
|
||||
_clearBullets: function() {
|
||||
this.toolbar.btnMarkers.toggle(false, true);
|
||||
this.toolbar.btnNumbers.toggle(false, true);
|
||||
|
|
|
@ -952,15 +952,6 @@ define([
|
|||
},
|
||||
|
||||
hidePreloader: function() {
|
||||
// if (!!this.appOptions.customization && !this.appOptions.customization.done) {
|
||||
// this.appOptions.customization.done = true;
|
||||
// if (!this.appOptions.isDesktopApp)
|
||||
// this.appOptions.customization.about = true;
|
||||
// Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationElements);
|
||||
// if (this.appOptions.canBrandingExt)
|
||||
// Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationExtElements);
|
||||
// }
|
||||
|
||||
$('#loading-mask').hide().remove();
|
||||
},
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ define([
|
|||
toolbar: '#viewport #toolbar',
|
||||
leftMenu: '#viewport #left-menu, #viewport #id-toolbar-full-placeholder-btn-settings, #viewport #id-toolbar-short-placeholder-btn-settings',
|
||||
rightMenu: '#viewport #right-menu',
|
||||
header: '#viewport #header',
|
||||
statusBar: '#statusbar'
|
||||
};
|
||||
|
||||
|
@ -1061,7 +1060,6 @@ define([
|
|||
|
||||
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram) {
|
||||
var options = {};
|
||||
JSON.parse(Common.localStorage.getItem('sse-hidden-title')) && (options.title = true);
|
||||
JSON.parse(Common.localStorage.getItem('sse-hidden-formula')) && (options.formula = true);
|
||||
application.getController('Toolbar').hideElements(options);
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue