.
This commit is contained in:
@@ -148,7 +148,7 @@
|
|||||||
// Get all input elements
|
// Get all input elements
|
||||||
inputs = extendInputs(evt.dataTransfer.files.length);
|
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
|
// Loop through each dropped file and try to assign to an
|
||||||
// input element
|
// input element
|
||||||
@@ -157,8 +157,8 @@
|
|||||||
dT.clearData();
|
dT.clearData();
|
||||||
dT.items.add(f);
|
dT.items.add(f);
|
||||||
for (let i = 0; i < inputs.length; i++) {
|
for (let i = 0; i < inputs.length; i++) {
|
||||||
el = inputs.get(i)
|
el = inputs.get(i);
|
||||||
console.log("drop el", el)
|
console.log("drop el", el);
|
||||||
|
|
||||||
if (el.files.length == 0) {
|
if (el.files.length == 0) {
|
||||||
el.files = dT.files;
|
el.files = dT.files;
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
|
|
||||||
$(`[name=${feedback_el_name}]`).prop("checked", true);
|
$(`[name=${feedback_el_name}]`).prop("checked", true);
|
||||||
}
|
}
|
||||||
return false
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user