Commit 19efa5bc by Johannes Zellner

Set a drop zone effect to show the correct cursor

1 parent 35355283
Showing with 3 additions and 0 deletions
...@@ -164,10 +164,13 @@ function uploadFiles(files) { ...@@ -164,10 +164,13 @@ function uploadFiles(files) {
} }
function dragOver(event) { function dragOver(event) {
event.stopPropagation();
event.preventDefault(); event.preventDefault();
event.dataTransfer.dropEffect = 'copy';
} }
function drop(event) { function drop(event) {
event.stopPropagation();
event.preventDefault(); event.preventDefault();
uploadFiles(event.dataTransfer.files || []); uploadFiles(event.dataTransfer.files || []);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!