From bca1cfabaa7ae84265bfb985fb7841997aa3d044 Mon Sep 17 00:00:00 2001 From: Vladimir Privezenov Date: Mon, 2 Oct 2023 10:34:38 +0300 Subject: [PATCH] Add type of section for asc_onBeginSmartArtPreview event --- common/Charts/charts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Charts/charts.js b/common/Charts/charts.js index 82cab777c4..de1931ccd3 100644 --- a/common/Charts/charts.js +++ b/common/Charts/charts.js @@ -728,7 +728,8 @@ ChartPreviewManager.prototype.getChartPreviews = function(chartType, arrId, bEmp SmartArtPreviewDrawer.prototype.OnBegin = function () { const oApi = Asc.editor || editor; this.index = 0; - if (oApi) oApi.sendEvent("asc_onBeginSmartArtPreview"); + if (oApi) + oApi.sendEvent("asc_onBeginSmartArtPreview", this.typeOfSectionLoad); } SmartArtPreviewDrawer.prototype.OnEnd = function() {