[SSE] Use asc_getLocaleExample2 instead of asc_getLocaleExample.

This commit is contained in:
Julia Radzhabova 2017-01-17 12:45:48 +03:00
parent f956912aa8
commit 5cf5f1e0c7

View file

@ -754,11 +754,16 @@ define([
updateRegionalExample: function(landId) { updateRegionalExample: function(landId) {
if (this.api) { if (this.api) {
var text = (landId) ? this.api.asc_getLocaleExample(landId, 1000.01, new Date()) : ''; var text = '';
//var arr = this.api.asc_getFormatCells(null, landId); // all formats if (landId) {
// text = this.api.asc_getLocaleExample2(arr[0], 1000.01, landId); var info = new Asc.asc_CFormatCellsInfo();
// text = text + ' ' + this.api.asc_getLocaleExample2(arr[3], new Date(), landId); info.asc_setType(Asc.c_oAscNumFormatType.None);
// text = text + ' ' + this.api.asc_getLocaleExample2(arr[5], new Date(), landId); info.asc_setSymbol(landId);
var arr = this.api.asc_getFormatCells(info); // all formats
text = this.api.asc_getLocaleExample2(arr[2], 1000.01, landId);
text = text + ' ' + this.api.asc_getLocaleExample2(arr[4], (new Date()).getExcelDateWithTime(), landId);
text = text + ' ' + this.api.asc_getLocaleExample2(arr[6], (new Date()).getExcelDateWithTime(), landId);
}
$('#fms-lbl-reg-settings').text(_.isEmpty(text) ? '' : this.strRegSettingsEx + text); $('#fms-lbl-reg-settings').text(_.isEmpty(text) ? '' : this.strRegSettingsEx + text);
} }
}, },