Fix Bug 36885.

This commit is contained in:
Julia Radzhabova 2018-02-08 18:22:32 +03:00
parent 682c912e4a
commit 22237f9634
3 changed files with 9 additions and 5 deletions

View file

@ -142,7 +142,6 @@ define([
if (this.isHandlerCalled) return; if (this.isHandlerCalled) return;
this.isHandlerCalled = true; this.isHandlerCalled = true;
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result}); externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true;
}, },
setChartData: function() { setChartData: function() {
@ -210,6 +209,7 @@ define([
} }
this.diagramEditorView.hide(); this.diagramEditorView.hide();
} }
this.isHandlerCalled = false;
} else } else
if (eventData.type == "processMouse") { if (eventData.type == "processMouse") {
if (eventData.data.event == 'mouse:up') { if (eventData.data.event == 'mouse:up') {

View file

@ -111,15 +111,18 @@ define([
}, },
onDlgBtnClick: function(event) { onDlgBtnClick: function(event) {
var state = event.currentTarget.attributes['result'].value; if ( this.handler ) {
if ( this.handler && this.handler.call(this, state) ) this.handler.call(this, event.currentTarget.attributes['result'].value);
return; return;
}
this.hide(); this.hide();
}, },
onToolClose: function() { onToolClose: function() {
if ( this.handler && this.handler.call(this, 'cancel') ) if ( this.handler ) {
this.handler.call(this, 'cancel');
return; return;
}
this.hide(); this.hide();
}, },

View file

@ -1734,7 +1734,8 @@ define([
this.api.asc_closeCellEditor(); this.api.asc_closeCellEditor();
Common.UI.Menu.Manager.hideAll(); Common.UI.Menu.Manager.hideAll();
Common.Gateway.internalMessage('canClose', {mr:data.data.mr, answer: true}); Common.Gateway.internalMessage('canClose', {mr:data.data.mr, answer: true});
} } else
Common.Gateway.internalMessage('canClose', {answer: false});
break; break;
case 'window:drag': case 'window:drag':
this.isDiagramDrag = data.data; this.isDiagramDrag = data.data;