diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/js/app.js | 3 |
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 | ||
166 | function dragOver(event) { | 166 | function dragOver(event) { |
167 | event.stopPropagation(); | ||
167 | event.preventDefault(); | 168 | event.preventDefault(); |
169 | event.dataTransfer.dropEffect = 'copy'; | ||
168 | } | 170 | } |
169 | 171 | ||
170 | function drop(event) { | 172 | function drop(event) { |
173 | event.stopPropagation(); | ||
171 | event.preventDefault(); | 174 | event.preventDefault(); |
172 | uploadFiles(event.dataTransfer.files || []); | 175 | uploadFiles(event.dataTransfer.files || []); |
173 | } | 176 | } |