aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/js/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index 4cb57e3..b68b608 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -164,10 +164,13 @@ function uploadFiles(files) {
164} 164}
165 165
166function dragOver(event) { 166function dragOver(event) {
167 event.stopPropagation();
167 event.preventDefault(); 168 event.preventDefault();
169 event.dataTransfer.dropEffect = 'copy';
168} 170}
169 171
170function drop(event) { 172function drop(event) {
173 event.stopPropagation();
171 event.preventDefault(); 174 event.preventDefault();
172 uploadFiles(event.dataTransfer.files || []); 175 uploadFiles(event.dataTransfer.files || []);
173} 176}