This commit is contained in:
Ross
2021-10-31 18:18:35 +00:00
parent facd89f9fc
commit 316ecd00a0
+4 -4
View File
@@ -148,7 +148,7 @@
// Get all input elements
inputs = extendInputs(evt.dataTransfer.files.length);
console.log("drop inputs", inputs)
console.log("drop inputs", inputs);
// Loop through each dropped file and try to assign to an
// input element
@@ -157,8 +157,8 @@
dT.clearData();
dT.items.add(f);
for (let i = 0; i < inputs.length; i++) {
el = inputs.get(i)
console.log("drop el", el)
el = inputs.get(i);
console.log("drop el", el);
if (el.files.length == 0) {
el.files = dT.files;
@@ -173,7 +173,7 @@
$(`[name=${feedback_el_name}]`).prop("checked", true);
}
return false
return false;
}
}
})