浏览代码

Fixed comments

父节点
当前提交
c73e3118ab
签署人:: Brendan Abolivier <contact@brendanabolivier.com> GPG 密钥 ID: 8EF1500759F70623
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      front/form.js

+ 3
- 3
front/form.js 查看文件

333
 	data.token = token;
333
 	data.token = token;
334
 	data.custom = {};
334
 	data.custom = {};
335
 
335
 
336
-	// Custom fields
337
 	// Select the field
336
 	// Select the field
338
 	let index = 0;
337
 	let index = 0;
339
-
340
 	if(labels) {
338
 	if(labels) {
341
 		index = 1;
339
 		index = 1;
342
 	}
340
 	}
343
-	
341
+
342
+	// Iterate over all the fields
344
 	for(let field in DOMFields) {
343
 	for(let field in DOMFields) {
345
 		let el = DOMFields[field].children[index];
344
 		let el = DOMFields[field].children[index];
345
+		// Do we need to push this field into default or custom fields?
346
 		if(field in customFields) {
346
 		if(field in customFields) {
347
 			data.custom[field] = el.value;
347
 			data.custom[field] = el.value;
348
 		} else {
348
 		} else {