Commit 3dd444be authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 32938.

parent 1a02a40d
......@@ -182,7 +182,6 @@ define([
if (this.diagramEditorView) {
if (eventData.type == 'documentReady') {
this.diagramEditorView._isExternalDocReady = true;
this.diagramEditorView.setControlsDisabled(false);
if (this.diagramEditorView._chartData) {
externalEditor && externalEditor.serviceCommand('setChartData', this.diagramEditorView._chartData);
this.diagramEditorView._chartData = null;
......@@ -191,6 +190,10 @@ define([
this.onDiagrammEditingDisabled();
}
} else
if (eventData.type == 'chartDataReady') {
if (this.needDisableEditing===undefined)
this.diagramEditorView.setControlsDisabled(false);
} else
if (eventData.type == "shortcut") {
if (eventData.data.key == 'escape')
this.diagramEditorView.hide();
......
......@@ -369,6 +369,13 @@ define([
}
},
onSelectionChanged: function(info){
if (!this._isChartDataReady){
this._isChartDataReady = true;
Common.Gateway.internalMessage('chartDataReady');
}
},
onLongActionBegin: function(type, id) {
var action = {id: id, type: type};
this.stackLongActions.push(action);
......@@ -908,6 +915,8 @@ define([
me.api.asc_registerCallback('asc_onAuthParticipantsChanged', _.bind(me.onAuthParticipantsChanged, me));
me.api.asc_registerCallback('asc_onParticipantsChanged', _.bind(me.onAuthParticipantsChanged, me));
/** coauthoring end **/
if (me.appOptions.isEditDiagram)
me.api.asc_registerCallback('asc_onSelectionChanged', _.bind(me.onSelectionChanged, me));
if (me.stackLongActions.exist({id: ApplyEditRights, type: Asc.c_oAscAsyncActionType['BlockInteraction']})) {
me.onLongActionEnd(Asc.c_oAscAsyncActionType['BlockInteraction'], ApplyEditRights);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment