[DE] Fix Bug 47607

This commit is contained in:
Julia Radzhabova 2020-11-23 21:37:56 +03:00
parent 6be3e9ea97
commit 2a60b2466d
2 changed files with 6 additions and 5 deletions

View file

@ -337,6 +337,7 @@ define([
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
},
isEndNote: isEndNote,
hasSections: me.api.asc_GetSectionsCount()>1,
props: isEndNote ? me.api.asc_GetEndnoteProps() : me.api.asc_GetFootnoteProps()
})).show();
break;

View file

@ -130,6 +130,7 @@ define([
this.handler = options.handler;
this.props = options.props;
this.isEndNote = options.isEndNote || false;
this.hasSections = options.hasSections || false;
Common.Views.AdvancedSettingsWindow.prototype.initialize.call(this, this.options);
@ -260,17 +261,16 @@ define([
me.btnApply.setDisabled(value.length>0);
});
var arr = this.hasSections ? [{ displayValue: this.textSection, value: 0 }] : [];
arr.push({ displayValue: this.textDocument, value: 1 });
this.cmbApply = new Common.UI.ComboBox({
el: $('#note-settings-combo-apply'),
cls: 'input-group-nr',
menuStyle: 'min-width: 150px;',
editable: false,
data: [
{ displayValue: this.textDocument, value: 1 },
{ displayValue: this.textSection, value: 0 }
]
data: arr
});
this.cmbApply.setValue(1);
this.cmbApply.setValue(arr[0].value);
this.btnApply = new Common.UI.Button({
el: $('#note-settings-btn-apply')