From 0bb4a2bd2f0fb4f36a4ebac26325b090761a2718 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 6 Aug 2024 14:11:07 +0300 Subject: [PATCH] Remove unused --- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/documenteditor/main/app/view/FileMenuPanels.js | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index c9882b9581..0a2061d844 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1704,7 +1704,7 @@ define([ this.appOptions.canSubmitForms = this.appOptions.isRestrictedEdit && this.appOptions.canFillForms && this.appOptions.canLicense && (typeof (this.editorConfig.customization) == 'object') && !!this.editorConfig.customization.submitForm && !this.appOptions.isOffline; this.appOptions.canStartFilling = this.editorConfig.canStartFilling && this.appOptions.isEdit && this.appOptions.isPDFForm; // show Start Filling button in the header - this.appOptions.compactHeader = Common.localStorage.getBool("de-settings-compact-header", this.appOptions.customization && (typeof (this.appOptions.customization) == 'object') && !!this.appOptions.customization.compactHeader); + this.appOptions.compactHeader = this.appOptions.customization && (typeof (this.appOptions.customization) == 'object') && !!this.appOptions.customization.compactHeader; this.appOptions.twoLevelHeader = this.appOptions.isEdit || this.appOptions.isPDFForm && this.appOptions.canFillForms && this.appOptions.isRestrictedEdit; // when compactHeader=true some buttons move to toolbar if ( this.appOptions.isLightVersion ) { diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 9c6764b6fe..7aaef61eb2 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -396,9 +396,6 @@ define([ '', '
', '', - // '', - // '
', - // '', '', '
', '', @@ -474,14 +471,6 @@ define([ }); (Common.Utils.isIE || Common.Utils.isMac && Common.Utils.isGecko) && this.chUseAltKey.$el.parent().parent().hide(); - // this.chCompactHeader = new Common.UI.CheckBox({ - // el: $markup.findById('#fms-chb-compact-header'), - // labelText: 'Compact header', - // dataHint: '2', - // dataHintDirection: 'left', - // dataHintOffset: 'small' - // }); - this.chTabBack = new Common.UI.CheckBox({ el: $markup.findById('#fms-chb-tab-background'), labelText: this.txtTabBack, @@ -1006,7 +995,6 @@ define([ this.rbChangesBallons.setValue(!value); } - // this.chCompactHeader.setValue(Common.localStorage.getBool("de-settings-compact-header", this.mode.compactHeader)); this.chTabBack.setValue(Common.Utils.InternalSettings.get("settings-tab-background")==='toolbar'); }, @@ -1065,7 +1053,6 @@ define([ Common.localStorage.setBool("ui-rtl", this.chRTL.isChecked()); //Common.localStorage.setBool("de-settings-quick-print-button", this.chQuickPrint.isChecked()); - // Common.localStorage.setBool("de-settings-compact-header", this.chCompactHeader.isChecked()); if (!Common.Utils.isIE && Common.UI.FeaturesManager.canChange('tabBackground', true)) { Common.localStorage.setItem("de-settings-tab-background", this.chTabBack.isChecked() ? 'toolbar' : 'header'); Common.Utils.InternalSettings.set("settings-tab-background", this.chTabBack.isChecked() ? 'toolbar' : 'header');