[SSE] Refactoring apply shart type

This commit is contained in:
Julia Radzhabova 2021-09-08 01:05:07 +03:00
parent cc5fd21f00
commit 28c082312a

View file

@ -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();
}