diff --git a/oform/format/Document.js b/oform/format/Document.js index e07236c..d7661db 100644 --- a/oform/format/Document.js +++ b/oform/format/Document.js @@ -568,7 +568,7 @@ this.OForm.onChangeRoles(); }; - CDocument.prototype.onChangeFieldGroup = function(fieldGroup) + CDocument.prototype.onChangeFieldGroupFilled = function(fieldGroup) { if (!this.OForm) return; diff --git a/oform/format/FieldGroup.js b/oform/format/FieldGroup.js index f5343f0..9c6bb6d 100644 --- a/oform/format/FieldGroup.js +++ b/oform/format/FieldGroup.js @@ -69,7 +69,7 @@ AscCommon.History.Add(new AscDFH.CChangesOFormFieldGroupFilled(this, this.Filled, isFilled)); this.Filled = isFilled; - this.onChange(); + this.onChangeFilled(); }; CFieldGroup.prototype.setWeight = function(value) { diff --git a/oform/format/UserMaster.js b/oform/format/UserMaster.js index 309b415..004c812 100644 --- a/oform/format/UserMaster.js +++ b/oform/format/UserMaster.js @@ -124,7 +124,7 @@ CUserMaster.prototype.initDefaultUser = function() { // TODO: Возможно стоит придумать уникальный id общий для дефолтовой роли - this.setRole(AscCommon.translateManager.getValue("Anyone")); + this.setRole("Anyone"); this.setColor(255, 239, 191); }; CUserMaster.prototype.compare = function(user) diff --git a/oform/format/changes/FieldGroupChanges.js b/oform/format/changes/FieldGroupChanges.js index c4f58ca..13d8b52 100644 --- a/oform/format/changes/FieldGroupChanges.js +++ b/oform/format/changes/FieldGroupChanges.js @@ -137,7 +137,7 @@ function(value) { this.Class.Filled = value; - this.Class.onChange(); + this.Class.onChangeFilled(); }, false );