Browse Source

Fixed wrongly-generated IDs

Brendan Abolivier 7 years ago
parent
commit
ca311c575c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js View File

@@ -167,7 +167,7 @@ function generateForm(id) {
167 167
 // return: a block containing the field and a label describing it (if enabled)
168 168
 function getField(fieldInfos) {
169 169
 	var block = document.createElement('div');
170
-	block.setAttribute('id', fieldInfos.name);
170
+	block.setAttribute('id', 'form_' + fieldInfos.name);
171 171
 
172 172
 	// Declare the variable first
173 173
 	let field = {};