Added drag & drop support for Firefox

This commit is contained in:
Tobias Reich 2013-05-24 15:27:23 +03:00
parent 1204ef63f4
commit 4d3fb39196

View File

@ -119,8 +119,8 @@ $(document).ready(function(){
/* Upload */
$(document.documentElement)
.on("dragover", function(event) { event.preventDefault();}, false)
.on("drop", function (e) { e.stopPropagation(); e.preventDefault(); lychee.upload(event.dataTransfer.files); return true;});
.on("dragover", function(e) { e.preventDefault();}, false)
.on("drop", function (e) { e.stopPropagation(); e.preventDefault(); lychee.upload(e.originalEvent.dataTransfer.files); return true; });
/* Init */
lychee.ready();