From 37b37425af0fdd736aba27dbb08713dc2e34f598 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Sun, 4 Dec 2022 16:56:12 +0300 Subject: [PATCH] For Bug 59971 --- apps/common/main/lib/controller/Desktop.js | 1 + apps/common/main/lib/view/ExternalOleEditor.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 9f9a4ba65..3e1275143 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -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'})); diff --git a/apps/common/main/lib/view/ExternalOleEditor.js b/apps/common/main/lib/view/ExternalOleEditor.js index 957018e21..00260f675 100644 --- a/apps/common/main/lib/view/ExternalOleEditor.js +++ b/apps/common/main/lib/view/ExternalOleEditor.js @@ -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;