From cb4576cd8d76d4155b27df67c651fc12589cbf33 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 5 Mar 2020 14:38:25 +0300 Subject: [PATCH] [Desktop] Call asc_onShowPopupWindow on window show --- apps/documenteditor/main/app/view/DocumentHolder.js | 2 ++ apps/presentationeditor/main/app/view/DocumentHolder.js | 1 + apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 1 + 3 files changed, 4 insertions(+) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 5d531aa6e..7f91d40da 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -417,6 +417,8 @@ define([ /** coauthoring begin **/ userTipHide(); /** coauthoring end **/ + me.mode && me.mode.isDesktopApp && me.api && me.api.asc_onShowPopupWindow(); + }, 'modal:show': function(e){ me.hideTips(); diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 7da761ce6..cd7581c99 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -418,6 +418,7 @@ define([ /** coauthoring begin **/ userTipHide(); /** coauthoring end **/ + me.mode && me.mode.isDesktopApp && me.api && me.api.asc_onShowPopupWindow(); }, 'modal:show': function(e){ me.hideTips(); diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index c62edcc75..c8f244f0c 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -150,6 +150,7 @@ define([ Common.NotificationCenter.on({ 'window:show': function(e){ me.hideHyperlinkTip(); + me.permissions && me.permissions.isDesktopApp && me.api && me.api.asc_onShowPopupWindow(); }, 'modal:show': function(e){ me.hideCoAuthTips();