[DE] Set check mode for form controls

This commit is contained in:
Julia Radzhabova 2020-11-11 17:24:46 +03:00
parent 463bca857e
commit 080b21ba8f
2 changed files with 2 additions and 0 deletions

View file

@ -220,6 +220,7 @@ define([
if (this.api) { if (this.api) {
this.disableEditing(state); this.disableEditing(state);
this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None); 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); Common.NotificationCenter.trigger('edit:complete', this.toolbar);
}, },

View file

@ -1003,6 +1003,7 @@ define([
me.api.SetCollaborativeMarksShowType(Asc.c_oAscCollaborativeMarksShowType.None); me.api.SetCollaborativeMarksShowType(Asc.c_oAscCollaborativeMarksShowType.None);
} }
Common.Utils.InternalSettings.set("de-settings-coauthmode", me._state.fastCoauth); Common.Utils.InternalSettings.set("de-settings-coauthmode", me._state.fastCoauth);
me.api.asc_SetPerformContentControlActionByClick(me.appOptions.isRestrictedEdit && me.appOptions.canFillForms);
/** coauthoring end **/ /** coauthoring end **/