Fix Bug 36870
This commit is contained in:
parent
590a2e6d0c
commit
68ae26ac5d
|
@ -141,7 +141,12 @@ define([
|
||||||
handler: function(result, value) {
|
handler: function(result, value) {
|
||||||
if (this.isHandlerCalled) return;
|
if (this.isHandlerCalled) return;
|
||||||
this.isHandlerCalled = true;
|
this.isHandlerCalled = true;
|
||||||
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
|
if (this.diagramEditorView._isExternalDocReady)
|
||||||
|
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
|
||||||
|
else {
|
||||||
|
this.diagramEditorView.hide();
|
||||||
|
this.isHandlerCalled = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setChartData: function() {
|
setChartData: function() {
|
||||||
|
|
|
@ -82,11 +82,9 @@ define([
|
||||||
disabled: true
|
disabled: true
|
||||||
});
|
});
|
||||||
this.btnCancel = new Common.UI.Button({
|
this.btnCancel = new Common.UI.Button({
|
||||||
el: $('#id-btn-diagram-editor-cancel'),
|
el: $('#id-btn-diagram-editor-cancel')
|
||||||
disabled: true
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$window.find('.tool.close').addClass('disabled');
|
|
||||||
this.$window.find('.dlg-btn').on('click', _.bind(this.onDlgBtnClick, this));
|
this.$window.find('.dlg-btn').on('click', _.bind(this.onDlgBtnClick, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue