[SSE] asc_insertFormula -> asc_insertInCell
This commit is contained in:
parent
29ccd1e6d7
commit
fb86d517b1
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue