From facd89f9fcdc34e68a46209666147a6766ea537f Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 31 Oct 2021 18:17:10 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index fac0fe58..0ee43d0d 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -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("-");