From 0df0720f02466eada057f81aeefdce4890ba80a6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 23 Mar 2017 16:59:19 +0300 Subject: [PATCH] [SSE] Change value for example in the format settings dialog. --- .../spreadsheeteditor/main/app/view/FormatSettingsDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js index bfbb743f1..7dcb51b14 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js @@ -291,12 +291,12 @@ define([ else if (props.formatInfo.asc_getType() == Asc.c_oAscNumFormatType.Time) this.cmbType.setValue(this.api.asc_getLocaleExample(props.format, 1.534)); else - this.cmbType.setValue(this.api.asc_getLocaleExample(props.format, 37973)); + this.cmbType.setValue(this.api.asc_getLocaleExample(props.format, 38822)); } this.Format = props.format; } // for fraction - if props.format not in cmbType - setValue(this.txtCustom) - // for date/time - if props.format not in cmbType - setValue(this.api.asc_getLocaleExample(props.format, 37973)) + // for date/time - if props.format not in cmbType - setValue(this.api.asc_getLocaleExample(props.format, 38822)) // for cmbNegative - if props.format not in cmbNegative - setValue(this.api.asc_getLocaleExample(props.format)) } }, @@ -441,7 +441,7 @@ define([ var formatsarr = this.api.asc_getFormatCells(info), data = [], - exampleVal = (record.value == Asc.c_oAscNumFormatType.Date) ? 37973 : ((record.value == Asc.c_oAscNumFormatType.Time) ? 1.534 : parseFloat("-1234.12345678901234567890")); + exampleVal = (record.value == Asc.c_oAscNumFormatType.Date) ? 38822 : ((record.value == Asc.c_oAscNumFormatType.Time) ? 1.534 : parseFloat("-1234.12345678901234567890")); formatsarr.forEach(function(item) { data.push({value: item, displayValue: me.api.asc_getLocaleExample(item, exampleVal)}); });