From 080b21ba8fd304c033de71edc2c29672fdbc3690 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 11 Nov 2020 17:24:46 +0300 Subject: [PATCH] [DE] Set check mode for form controls --- apps/documenteditor/main/app/controller/FormsTab.js | 1 + apps/documenteditor/main/app/controller/Main.js | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/documenteditor/main/app/controller/FormsTab.js b/apps/documenteditor/main/app/controller/FormsTab.js index 91d7b619d..8869661fd 100644 --- a/apps/documenteditor/main/app/controller/FormsTab.js +++ b/apps/documenteditor/main/app/controller/FormsTab.js @@ -220,6 +220,7 @@ define([ if (this.api) { this.disableEditing(state); this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None); + this.api.asc_SetPerformContentControlActionByClick(state); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); }, diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index be6c9ebcc..e4690eb0f 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1003,6 +1003,7 @@ define([ me.api.SetCollaborativeMarksShowType(Asc.c_oAscCollaborativeMarksShowType.None); } Common.Utils.InternalSettings.set("de-settings-coauthmode", me._state.fastCoauth); + me.api.asc_SetPerformContentControlActionByClick(me.appOptions.isRestrictedEdit && me.appOptions.canFillForms); /** coauthoring end **/