[DE] Change preview forms
This commit is contained in:
parent
01ff3bdb9d
commit
469b6bf181
|
@ -224,7 +224,9 @@ define([
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
this.disableEditing(state);
|
this.disableEditing(state);
|
||||||
this.view && this.view.setPreviewMode(state); // send role name - lastViewRole
|
this.view && this.view.setPreviewMode(state); // send role name - lastViewRole
|
||||||
this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None, lastViewRole);
|
var role = new AscCommon.CRestrictionSettings();
|
||||||
|
role.put_OFormRole(lastViewRole);
|
||||||
|
this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None, role);
|
||||||
this.api.asc_SetPerformContentControlActionByClick(state);
|
this.api.asc_SetPerformContentControlActionByClick(state);
|
||||||
this.api.asc_SetHighlightRequiredFields(state);
|
this.api.asc_SetHighlightRequiredFields(state);
|
||||||
state && (this._state.lastViewRole = lastViewRole);
|
state && (this._state.lastViewRole = lastViewRole);
|
||||||
|
|
Loading…
Reference in a new issue