diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 7a2fba2d3..9efa146cd 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -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, diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 991674ad5..8adac22ab 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -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); diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index b6b99f48f..0ed9d8fb8 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -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); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 9482e4270..431d867cd 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -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); diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 492f45054..4115e6006 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -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); diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index fc7e0a79b..af235d9ac 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -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(); }, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 5df0732da..f446a8c66 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -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