From aa7e70eac264c6e543b532d2632db655e085c983 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 9 Sep 2022 20:11:52 +0300 Subject: [PATCH] [DE] Fix smart arts --- apps/documenteditor/main/app/controller/Toolbar.js | 1 - apps/documenteditor/main/app/view/Toolbar.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 4a96e64f7..f11e5d6c6 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -3343,7 +3343,6 @@ define([ } else { menu.store.add(arr); } - menu.onResetItems(); menu.on('item:click', function(picker, item, record, e) { if (record) { me.api.asc_createSmartArt(record.get('value')); diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 2c13a5040..3505ed369 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -2234,7 +2234,7 @@ define([ }); var onShowBeforeSmartArt = function (menu) { // + <% if(typeof imageUrl === "undefined" || imageUrl===null || imageUrl==="") { %> style="visibility: hidden;" <% } %>/>', me.btnInsertSmartArt.menu.items.forEach(function (item, index) { - item.menuPicker = new Common.UI.DataViewSimple({ + item.menuPicker = new Common.UI.DataView({ el: $('#' + item.value), parentMenu: me.btnInsertSmartArt.menu.items[index].menu, itemTemplate: _.template([