.
This commit is contained in:
@@ -155,11 +155,16 @@
|
|||||||
console.log("SHIT", evt);
|
console.log("SHIT", evt);
|
||||||
$(evt.target).removeClass("drop-target-active");
|
$(evt.target).removeClass("drop-target-active");
|
||||||
|
|
||||||
|
file_drop_number = evt.dataTransfer.files.length;
|
||||||
// Get all input elements
|
// Get all input elements
|
||||||
inputs = extendInputs(evt.dataTransfer.files.length);
|
inputs = extendInputs(file_drop_number);
|
||||||
|
|
||||||
console.log("drop inputs", inputs, evt);
|
console.log("drop inputs", inputs, evt);
|
||||||
|
|
||||||
|
if (file_drop_number < 1) {
|
||||||
|
toastr.warning(`Drop failed (no files), try again.`);
|
||||||
|
}
|
||||||
|
|
||||||
// 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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user