[SSE] asc_insertFormula -> asc_insertInCell

This commit is contained in:
Julia Radzhabova 2020-04-23 13:10:34 +03:00
parent 29ccd1e6d7
commit fb86d517b1
4 changed files with 5 additions and 5 deletions

View file

@ -1986,7 +1986,7 @@ define([
value : addarr ? addarr[index] : menuItem, value : addarr ? addarr[index] : menuItem,
style: (typeof menuItem == 'string' && _.isEmpty(menuItem.trim())) ? 'min-height: 25px;' : '' style: (typeof menuItem == 'string' && _.isEmpty(menuItem.trim())) ? 'min-height: 25px;' : ''
}).on('click', function(item, e) { }).on('click', function(item, e) {
me.api.asc_insertFormula(item.value, Asc.c_oAscPopUpSelectorType.None, false ); me.api.asc_insertInCell(item.value, Asc.c_oAscPopUpSelectorType.None, false );
}); });
menu.addItem(mnu); menu.addItem(mnu);
}); });
@ -2063,7 +2063,7 @@ define([
caption: name, caption: name,
hint : (funcdesc && funcdesc[origname]) ? funcdesc[origname].d : '' hint : (funcdesc && funcdesc[origname]) ? funcdesc[origname].d : ''
}).on('click', function(item, e) { }).on('click', function(item, e) {
setTimeout(function(){ me.api.asc_insertFormula(item.caption, type, false ); }, 10); setTimeout(function(){ me.api.asc_insertInCell(item.caption, type, false ); }, 10);
}); });
menu.addItem(mnu); menu.addItem(mnu);
}); });

View file

@ -96,7 +96,7 @@ define([
if (func.origin === 'more') { if (func.origin === 'more') {
this.showDialog(group); this.showDialog(group);
} else { } else {
this.api.asc_insertFormula(func.name, Asc.c_oAscPopUpSelectorType.Func, !!autocomplete, true); this.api.asc_insertInCell(func.name, Asc.c_oAscPopUpSelectorType.FuncWizard, !!autocomplete);
!autocomplete && this.updateLast10Formulas(func.origin); !autocomplete && this.updateLast10Formulas(func.origin);
} }
} }

View file

@ -1223,7 +1223,7 @@ define([
(new SSE.Views.NamedRangePasteDlg({ (new SSE.Views.NamedRangePasteDlg({
handler: function(result, settings) { handler: function(result, settings) {
if (result == 'ok' && settings) { if (result == 'ok' && settings) {
me.api.asc_insertFormula(settings.asc_getName(true), settings.asc_getIsTable() ? Asc.c_oAscPopUpSelectorType.Table : Asc.c_oAscPopUpSelectorType.Range, false); me.api.asc_insertInCell(settings.asc_getName(true), settings.asc_getIsTable() ? Asc.c_oAscPopUpSelectorType.Table : Asc.c_oAscPopUpSelectorType.Range, false);
Common.component.Analytics.trackEvent('ToolBar', 'Paste Named Range'); Common.component.Analytics.trackEvent('ToolBar', 'Paste Named Range');
} }
Common.NotificationCenter.trigger('edit:complete', me.toolbar); Common.NotificationCenter.trigger('edit:complete', me.toolbar);

View file

@ -67,7 +67,7 @@ define([
'function:click': this.onInsertFunction.bind(this), 'function:click': this.onInsertFunction.bind(this),
'function:hint': function (name, type) { 'function:hint': function (name, type) {
setTimeout(function(){ setTimeout(function(){
me.api.asc_insertFormula(name, type, false); me.api.asc_insertInCell(name, type, false);
}, 0); }, 0);
} }
} }