Created
July 10, 2015 19:53
-
-
Save JBarna/4237bc0fa531e1775606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.ondragover = function(e) { e.preventDefault(); return false; }; | |
window.ondrop = function(e) { e.preventDefault(); return false; }; | |
var holder = window.document.getElementById('currentDirectory'); | |
holder.ondragover = function () { return false; }; | |
holder.ondragleave = function () { return false; }; | |
holder.ondrop = function(e){ | |
e.preventDefault(); | |
e.stopPropagation(); | |
console.log(e); | |
return false; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment