mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 18:05:42 +08:00
[oform] Add a method to clear the list of users in the field master
This commit is contained in:
@ -104,6 +104,13 @@
|
||||
AscCommon.History.Add(new AscDFH.CChangesOFormFieldMasterAddRemoveUser(this, user.GetId(), false));
|
||||
this.Users.splice(index, 1);
|
||||
};
|
||||
CFieldMaster.prototype.clearUsers = function()
|
||||
{
|
||||
while (this.Users.length)
|
||||
{
|
||||
this.removeUser(this.Users[this.Users.length - 1]);
|
||||
}
|
||||
};
|
||||
CFieldMaster.prototype.getUserCount = function()
|
||||
{
|
||||
return this.Users.length;
|
||||
@ -144,7 +151,6 @@
|
||||
};
|
||||
CFieldMaster.prototype.isUseInDocument = function()
|
||||
{
|
||||
return true;
|
||||
return (this.Field
|
||||
&& this.Field.IsUseInDocument()
|
||||
&& this === this.Field.GetFieldMaster());
|
||||
|
||||
Reference in New Issue
Block a user