[DE] fix bug 59971

This commit is contained in:
Maxim Kadushkin 2022-12-03 23:27:22 +03:00
parent f453f92a32
commit f7eccb611f

View file

@ -115,6 +115,7 @@ define([
}, },
onDlgBtnClick: function(event) { onDlgBtnClick: function(event) {
Common.NotificationCenter.trigger('modal:close', this);
if ( this.handler ) { if ( this.handler ) {
this.handler.call(this, event.currentTarget.attributes['result'].value); this.handler.call(this, event.currentTarget.attributes['result'].value);
return; return;
@ -123,6 +124,7 @@ define([
}, },
onToolClose: function() { onToolClose: function() {
Common.NotificationCenter.trigger('modal:close', this);
if ( this.handler ) { if ( this.handler ) {
this.handler.call(this, 'cancel'); this.handler.call(this, 'cancel');
return; return;