[SSE] Add more currency formats

This commit is contained in:
Julia Radzhabova 2019-06-28 17:41:18 +03:00
parent e1b61c55d4
commit 90ad9cb280
2 changed files with 15 additions and 7 deletions

View file

@ -1089,6 +1089,9 @@ define([
onNumberFormatMenu: function(menu, item) { onNumberFormatMenu: function(menu, item) {
if (this.api) { if (this.api) {
if (item.value == -1) {
// show more formats
} else {
var info = new Asc.asc_CFormatCellsInfo(); var info = new Asc.asc_CFormatCellsInfo();
info.asc_setType(Asc.c_oAscNumFormatType.Accounting); info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
info.asc_setSeparator(false); info.asc_setSeparator(false);
@ -1097,6 +1100,7 @@ define([
if (format && format.length>0) if (format && format.length>0)
this.api.asc_setCellFormat(format[0]); this.api.asc_setCellFormat(format[0]);
} }
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar); Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Number Format'); Common.component.Analytics.trackEvent('ToolBar', 'Number Format');

View file

@ -833,6 +833,10 @@ define([
{ {
caption : me.txtYen, caption : me.txtYen,
value : 0x0411 // ¥ ja-JP value : 0x0411 // ¥ ja-JP
},{caption: '--'},
{
caption : me.textMoreFormats,
value : -1
} }
] ]
}) })