From 28c082312af9cfe0e23e1a106dbdf9ec1346ae55 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 8 Sep 2021 01:05:07 +0300 Subject: [PATCH] [SSE] Refactoring apply shart type --- apps/spreadsheeteditor/main/app/view/ChartSettings.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index ed4e47a7c..ec7e483f6 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -135,6 +135,11 @@ define([ if (this._initSettings) this.createDelayedElements(); + if (this._isEditType) { + this._props = props; + return; + } + this.ShowHideElem(!!(props && props.asc_getChartProperties && props.asc_getChartProperties())); this.disableControls(this._locked); @@ -950,12 +955,14 @@ define([ if (result == 'ok') { props.endEdit(); me._isEditType = false; + me._props && me.ChangeSettings(me._props); } Common.NotificationCenter.trigger('edit:complete', me); } }).on('close', function() { me._isEditType && props.cancelEdit(); me._isEditType = false; + me._props = null; }); win.show(); }