|
@@ -130,12 +130,6 @@ function generateForm(id) {
|
130
|
130
|
label: lang.form_subj_label,
|
131
|
131
|
type: 'text',
|
132
|
132
|
required: true
|
133
|
|
- }),
|
134
|
|
- text: getField({
|
135
|
|
- name: items.text,
|
136
|
|
- label: lang.form_mesg_label,
|
137
|
|
- type: 'textarea',
|
138
|
|
- required: true
|
139
|
133
|
})
|
140
|
134
|
};
|
141
|
135
|
|
|
@@ -145,11 +139,20 @@ function generateForm(id) {
|
145
|
139
|
DOMFields[fieldName] = getField(field);
|
146
|
140
|
}
|
147
|
141
|
|
|
142
|
+ // Add the message's textarea
|
|
143
|
+ DOMFields[text] = getField({
|
|
144
|
+ name: items.text,
|
|
145
|
+ label: lang.form_mesg_label,
|
|
146
|
+ type: 'textarea',
|
|
147
|
+ required: true
|
|
148
|
+ });
|
|
149
|
+
|
148
|
150
|
// Adding all nodes to document
|
149
|
151
|
for(let field in DOMFields) {
|
150
|
152
|
el.appendChild(DOMFields[field]);
|
151
|
153
|
}
|
152
|
154
|
|
|
155
|
+
|
153
|
156
|
// Adding submit button
|
154
|
157
|
el.appendChild(getSubmitButton('form_subm', lang.form_subm_label));
|
155
|
158
|
|