mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-27 01:51:55 +08:00
[SSE] Change value for example in the format settings dialog.
This commit is contained in:
@ -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)});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user