Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19efa5bc
authored
May 18, 2018
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a drop zone effect to show the correct cursor
1 parent
35355283
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
frontend/js/app.js
frontend/js/app.js
View file @
19efa5b
...
@@ -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
||
[]);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment