Remove unused

This commit is contained in:
Julia Radzhabova
2024-08-06 14:11:07 +03:00
parent 371cf6c65f
commit 0bb4a2bd2f
2 changed files with 1 additions and 14 deletions

View File

@ -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 ) {

View File

@ -396,9 +396,6 @@ define([
'<tr>',
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
'</tr>',
// '<tr>',
// '<td colspan="2"><div id="fms-chb-compact-header"></div></td>',
// '</tr>',
'<tr class="tab-background">',
'<td colspan="2"><div id="fms-chb-tab-background"></div></td>',
'</tr>',
@ -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');