For Bug 59971

This commit is contained in:
Julia Radzhabova 2022-12-04 16:56:12 +03:00
parent f7eccb611f
commit 37b37425af
2 changed files with 1 additions and 2 deletions

View file

@ -340,6 +340,7 @@ define([
Common.NotificationCenter.on({
'modal:show': _onModalDialog.bind(this, 'open'),
'modal:close': _onModalDialog.bind(this, 'close'),
'modal:hide': _onModalDialog.bind(this, 'hide'),
'uitheme:changed' : function (name) {
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));

View file

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