fix syntax error
This commit is contained in:
parent
54c0821339
commit
a0495130cc
@ -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)
|
||||||
|
Reference in New Issue
Block a user