Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Fixed name field rendition issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
drq committed Dec 22, 2012
1 parent 1301ae7 commit cda7405
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/fields/basic/AnyField.js
Expand Up @@ -43,6 +43,7 @@
if (this.controlFieldTemplate) {
this.field = $.tmpl(this.controlFieldTemplate, {
"id": this.getId(),
"name": this.name,
"options": this.options
});
this.injectField(this.field);
Expand Down
1 change: 1 addition & 0 deletions js/fields/basic/CheckBoxField.js
Expand Up @@ -54,6 +54,7 @@
if (controlFieldTemplate) {
this.field = $.tmpl(controlFieldTemplate, {
"id": this.getId(),
"name": this.name,
"options": this.options
});
this.injectField(this.field);
Expand Down
2 changes: 1 addition & 1 deletion js/fields/basic/RadioField.js
Expand Up @@ -34,7 +34,7 @@
if (this.options.name) {
this.name = this.options.name;
}
else {
else if (!this.name) {
this.name = this.getId()+"-name";
}
},
Expand Down
1 change: 1 addition & 0 deletions js/fields/basic/SelectField.js
Expand Up @@ -91,6 +91,7 @@
"options": this.options,
"required": this.schema.required,
"selectOptions": this.selectOptions,
"name": this.name,
"data": this.data
});
this.injectField(this.field);
Expand Down
1 change: 1 addition & 0 deletions js/fields/basic/TextField.js
Expand Up @@ -46,6 +46,7 @@
if (this.controlFieldTemplate) {
this.field = $.tmpl(this.controlFieldTemplate, {
"id": this.getId(),
"name": this.name,
"options": this.options
});
this.injectField(this.field);
Expand Down

0 comments on commit cda7405

Please sign in to comment.