.
This commit is contained in:
@@ -148,6 +148,8 @@
|
|||||||
// 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)
|
||||||
|
|
||||||
// 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
|
||||||
[...evt.dataTransfer.files].forEach((f) => {
|
[...evt.dataTransfer.files].forEach((f) => {
|
||||||
@@ -156,11 +158,13 @@
|
|||||||
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)
|
||||||
|
|
||||||
if (el.files.length == 0) {
|
if (el.files.length == 0) {
|
||||||
el.files = dT.files;
|
el.files = dT.files;
|
||||||
//ocr(el)
|
//ocr(el)
|
||||||
$(el).change();
|
$(el).change();
|
||||||
|
console.log("drop change")
|
||||||
|
|
||||||
if (evt.target.id == "feedback-drop-target") {
|
if (evt.target.id == "feedback-drop-target") {
|
||||||
arr = el.name.split("-");
|
arr = el.name.split("-");
|
||||||
|
|||||||
Reference in New Issue
Block a user