Merge pull request #376 from ONLYOFFICE/feature/bug-44953

[SSE] Bug 44953
This commit is contained in:
Alexander Trofimov 2020-04-03 19:11:04 +03:00 committed by GitHub
commit d330550d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1950,7 +1950,7 @@ define([
}
},
onEntriesListMenu: function(validation, textarr) {
onEntriesListMenu: function(validation, textarr, addarr) {
if (textarr && textarr.length>0) {
var me = this,
documentHolderView = me.documentHolder,
@ -1970,9 +1970,10 @@ define([
_.each(textarr, function(menuItem, index) {
var mnu = new Common.UI.MenuItem({
caption : menuItem,
value : addarr ? addarr[index] : menuItem,
style: (typeof menuItem == 'string' && _.isEmpty(menuItem.trim())) ? 'min-height: 25px;' : ''
}).on('click', function(item, e) {
me.api.asc_insertFormula(item.caption, Asc.c_oAscPopUpSelectorType.None, false );
me.api.asc_insertFormula(item.value, Asc.c_oAscPopUpSelectorType.None, false );
});
menu.addItem(mnu);
});