Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function allowDrop(ev)
- {
- if (ev.target.getAttribute("droppable") == "false"){
- ev.dataTransfer.dropEffect = "none"; // dropping is not allowed
- ev.preventDefault();
- }
- else{
- ev.dataTransfer.dropEffect = "all"; // drop it like it's hot
- ev.preventDefault();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement