[DE] Fix smart arts

This commit is contained in:
JuliaSvinareva 2022-09-09 20:11:52 +03:00
parent fdc0e5038d
commit aa7e70eac2
2 changed files with 1 additions and 2 deletions

View file

@ -3343,7 +3343,6 @@ define([
} else { } else {
menu.store.add(arr); menu.store.add(arr);
} }
menu.onResetItems();
menu.on('item:click', function(picker, item, record, e) { menu.on('item:click', function(picker, item, record, e) {
if (record) { if (record) {
me.api.asc_createSmartArt(record.get('value')); me.api.asc_createSmartArt(record.get('value'));

View file

@ -2234,7 +2234,7 @@ define([
}); });
var onShowBeforeSmartArt = function (menu) { // + <% if(typeof imageUrl === "undefined" || imageUrl===null || imageUrl==="") { %> style="visibility: hidden;" <% } %>/>', var onShowBeforeSmartArt = function (menu) { // + <% if(typeof imageUrl === "undefined" || imageUrl===null || imageUrl==="") { %> style="visibility: hidden;" <% } %>/>',
me.btnInsertSmartArt.menu.items.forEach(function (item, index) { me.btnInsertSmartArt.menu.items.forEach(function (item, index) {
item.menuPicker = new Common.UI.DataViewSimple({ item.menuPicker = new Common.UI.DataView({
el: $('#' + item.value), el: $('#' + item.value),
parentMenu: me.btnInsertSmartArt.menu.items[index].menu, parentMenu: me.btnInsertSmartArt.menu.items[index].menu,
itemTemplate: _.template([ itemTemplate: _.template([