From 562f6908e1baf23efe526391eba0ceb0b3bcb59b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 18 Dec 2019 17:51:18 +0300 Subject: [PATCH] [DE] Fix settings for numbered list --- apps/documenteditor/main/app/view/ListSettingsDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/view/ListSettingsDialog.js b/apps/documenteditor/main/app/view/ListSettingsDialog.js index 75b435e05..5f9b0298b 100644 --- a/apps/documenteditor/main/app/view/ListSettingsDialog.js +++ b/apps/documenteditor/main/app/view/ListSettingsDialog.js @@ -211,6 +211,7 @@ define([ template : _.template(template.join('')), itemsTemplate: _.template(itemsTemplate.join('')), data : [ + { displayValue: this.txtNone, value: Asc.c_oAscNumberingFormat.None }, { displayValue: '1, 2, 3,...', value: Asc.c_oAscNumberingFormat.Decimal }, { displayValue: 'a, b, c,...', value: Asc.c_oAscNumberingFormat.LowerLetter }, { displayValue: 'A, B, C,...', value: Asc.c_oAscNumberingFormat.UpperLetter }, @@ -461,7 +462,6 @@ define([ if (this.type==2) { var store = this.cmbFormat.store; - store.unshift({ displayValue: this.txtNone, value: Asc.c_oAscNumberingFormat.None }); store.push({ displayValue: this.txtNewBullet, value: -1 }); this.cmbFormat.setData(store.models); this.levelsList.selectByIndex(this.level); @@ -485,7 +485,7 @@ define([ fillLevelProps: function(levelProps) { if (!levelProps) return; - this.cmbAlign.setValue(levelProps.get_Align() || ''); + this.cmbAlign.setValue((levelProps.get_Align()!==undefined) ? levelProps.get_Align() : ''); var format = levelProps.get_Format(), textPr = levelProps.get_TextPr(), text = levelProps.get_Text(); @@ -532,7 +532,7 @@ define([ this.cmbFormat.setData(this.cmbFormat.store.models); this.cmbFormat.selectRecord(this.cmbFormat.store.findWhere({value: Asc.c_oAscNumberingFormat.Bullet, symbol: this.bulletProps.symbol, font: this.bulletProps.font})); } else - this.cmbFormat.setValue(format || ''); + this.cmbFormat.setValue((format!==undefined) ? format : ''); } },