Skip to content

Commit

Permalink
Merge pull request #3827 from ONLYOFFICE/fix/smartart-section-loading
Browse files Browse the repository at this point in the history
Add type of section for asc_onBeginSmartArtPreview event
  • Loading branch information
SergeyLuzyanin authored Oct 3, 2023
2 parents 37763cf + bca1cfa commit 0da8877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/Charts/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0da8877

Please sign in to comment.