mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-03-31 10:23:35 +08:00
[oform] Add users to FieldGroup
Also implement first variant of adding role to oform and updating list of roles
This commit is contained in:
@ -366,6 +366,18 @@
|
||||
|
||||
return this.FieldMasters[index];
|
||||
};
|
||||
CDocument.prototype.getMaxWeight = function()
|
||||
{
|
||||
let max = -1;
|
||||
for (let index = 0, count = this.FieldGroups.length; index < count; ++index)
|
||||
{
|
||||
let curWeight = this.FieldGroups[index].getWeight();
|
||||
if (max > curWeight)
|
||||
max = curWeight;
|
||||
}
|
||||
|
||||
return max;
|
||||
};
|
||||
CDocument.prototype.onChangeFieldGroups = function()
|
||||
{
|
||||
if (!this.OForm)
|
||||
|
||||
Reference in New Issue
Block a user