[DE] Fix Bug 40580

This commit is contained in:
Julia Radzhabova 2019-08-20 12:16:28 +03:00
parent f64fd741f0
commit 1d6a469960
3 changed files with 11 additions and 7 deletions

View file

@ -5,7 +5,7 @@
<label class="input-label"><%= scope.textAlign %></label>
<div id="paragraphadv-spin-text-alignment"></div>
</div>
<div class="padding-large text-only" style="display: none; float: right;">
<div class="padding-large text-only" style="float: right;">
<label class="input-label"><%= scope.strIndentsOutlinelevel %></label>
<div id="paragraphadv-spin-outline-level"></div>
</div>

View file

@ -119,8 +119,8 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
];
this._arrOutlinelevel = [{displayValue: this.textBodyText, value: -1}];
for (var i=1; i<10; i++) {
this._arrOutlinelevel.push({displayValue: this.textLevel + ' ' + i, value: i});
for (var i=0; i<9; i++) {
this._arrOutlinelevel.push({displayValue: this.textLevel + ' ' + (i+1), value: i});
}
this._arrTabAlign = [
@ -301,7 +301,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
style: 'width: 174px;',
menuStyle : 'min-width: 174px;'
});
this.cmbOutlinelevel.setValue('');
this.cmbOutlinelevel.setValue(-1);
this.cmbOutlinelevel.on('selected', _.bind(this.onOutlinelevelSelect, this));
// Line & Page Breaks
@ -890,6 +890,8 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
this.tabList.selectByIndex(0);
}
this.cmbOutlinelevel.setValue(props.get_OutlineLvl()!==undefined ? props.get_OutlineLvl() : -1);
this._noApply = false;
this._changedProps = new Asc.asc_CParagraphProperty();
@ -1425,7 +1427,9 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
},
onOutlinelevelSelect: function(combo, record) {
if (this._changedProps) {
this._changedProps.put_OutlineLvl(record.value>-1 ? record.value: undefined);
}
},
textTitle: 'Paragraph - Advanced Settings',
@ -1497,7 +1501,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
textFirstLine: 'First line',
textHanging: 'Hanging',
textJustified: 'Justified',
textBodyText: 'BodyText',
textBodyText: 'Basic Text',
textLevel: 'Level',
strIndentsOutlinelevel: 'Outline level',
strIndent: 'Indents',

View file

@ -1736,7 +1736,7 @@
"DE.Views.ParagraphSettingsAdvanced.textAtLeast": "At least",
"DE.Views.ParagraphSettingsAdvanced.textAuto": "Multiple",
"DE.Views.ParagraphSettingsAdvanced.textBackColor": "Background Color",
"DE.Views.ParagraphSettingsAdvanced.textBodyText": "BodyText",
"DE.Views.ParagraphSettingsAdvanced.textBodyText": "Basic Text",
"DE.Views.ParagraphSettingsAdvanced.textBorderColor": "Border Color",
"DE.Views.ParagraphSettingsAdvanced.textBorderDesc": "Click on diagram or use buttons to select borders and apply chosen style to them",
"DE.Views.ParagraphSettingsAdvanced.textBorderWidth": "Border Size",