.
This commit is contained in:
@@ -148,6 +148,8 @@
|
||||
// Get all input elements
|
||||
inputs = extendInputs(evt.dataTransfer.files.length);
|
||||
|
||||
console.log("drop inputs", inputs)
|
||||
|
||||
// Loop through each dropped file and try to assign to an
|
||||
// input element
|
||||
[...evt.dataTransfer.files].forEach((f) => {
|
||||
@@ -156,11 +158,13 @@
|
||||
dT.items.add(f);
|
||||
for (let i = 0; i < inputs.length; i++) {
|
||||
el = inputs.get(i)
|
||||
console.log("drop el", el)
|
||||
|
||||
if (el.files.length == 0) {
|
||||
el.files = dT.files;
|
||||
//ocr(el)
|
||||
$(el).change();
|
||||
console.log("drop change")
|
||||
|
||||
if (evt.target.id == "feedback-drop-target") {
|
||||
arr = el.name.split("-");
|
||||
|
||||
Reference in New Issue
Block a user