mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:51:23 +08:00
Remove unused
This commit is contained in:
@ -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 ) {
|
||||
|
||||
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user