Fix Bug 34366.

This commit is contained in:
Julia Radzhabova 2017-03-17 09:43:35 +03:00
parent a3e90451c8
commit d8338c12f6

View file

@ -114,6 +114,7 @@ define([
createExternalEditor.apply(this); createExternalEditor.apply(this);
} }
this.isExternalEditorVisible = true; this.isExternalEditorVisible = true;
this.isHandlerCalled = false;
}, this), }, this),
'hide': _.bind(function(cmp){ 'hide': _.bind(function(cmp){
if (externalEditor) { if (externalEditor) {
@ -138,6 +139,8 @@ define([
}, },
handler: function(result, value) { handler: function(result, value) {
if (this.isHandlerCalled) return;
this.isHandlerCalled = true;
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result}); externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true; return true;
}, },