[SSE] Refactoring apply shart type
This commit is contained in:
parent
cc5fd21f00
commit
28c082312a
|
@ -135,6 +135,11 @@ define([
|
||||||
if (this._initSettings)
|
if (this._initSettings)
|
||||||
this.createDelayedElements();
|
this.createDelayedElements();
|
||||||
|
|
||||||
|
if (this._isEditType) {
|
||||||
|
this._props = props;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.ShowHideElem(!!(props && props.asc_getChartProperties && props.asc_getChartProperties()));
|
this.ShowHideElem(!!(props && props.asc_getChartProperties && props.asc_getChartProperties()));
|
||||||
this.disableControls(this._locked);
|
this.disableControls(this._locked);
|
||||||
|
|
||||||
|
@ -950,12 +955,14 @@ define([
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
props.endEdit();
|
props.endEdit();
|
||||||
me._isEditType = false;
|
me._isEditType = false;
|
||||||
|
me._props && me.ChangeSettings(me._props);
|
||||||
}
|
}
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
Common.NotificationCenter.trigger('edit:complete', me);
|
||||||
}
|
}
|
||||||
}).on('close', function() {
|
}).on('close', function() {
|
||||||
me._isEditType && props.cancelEdit();
|
me._isEditType && props.cancelEdit();
|
||||||
me._isEditType = false;
|
me._isEditType = false;
|
||||||
|
me._props = null;
|
||||||
});
|
});
|
||||||
win.show();
|
win.show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue