From bb8e4f5f7f386c5f5e154c48a135c577dc785146 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 24 Apr 2019 16:31:29 +0300 Subject: [PATCH] [DE] Show comment on start --- apps/documenteditor/main/app/controller/Main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 3308ff12c..f1e5cedc8 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1010,6 +1010,10 @@ define([ me.api.UpdateInterfaceState(); me.fillTextArt(me.api.asc_getTextArtPreviews()); + if (me.editorConfig.actionLink && me.editorConfig.actionLink.action && me.editorConfig.actionLink.action.type == 'comment') { + me.contComments.getView().fireEvent('comment:show', [me.editorConfig.actionLink.action.data, false]); + } + Common.NotificationCenter.trigger('document:ready', 'main'); me.applyLicense(); }