Archived
1
0

fix syntax error

This commit is contained in:
Jeff Becker 2017-10-01 11:47:36 -04:00
parent 54c0821339
commit a0495130cc
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -108,11 +108,11 @@ onready(function() {
var data = new FormData(); var data = new FormData();
data.append("message", document.getElementById("comment").value); data.append("message", document.getElementById("comment").value);
var inputs = form.getElementsByTagName("input"); var inputs = form.getElementsByTagName("input");
for(var input : inputs) for(var input in inputs)
{ {
if(input.files) if(input.files)
{ {
for (var file : input.files) for (var file in input.files)
data.append(input.name, file, file.name); data.append(input.name, file, file.name);
} }
else if(input.name) else if(input.name)