check for files.length
This commit is contained in:
parent
4ad2fbf698
commit
fcc03c742d
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@
|
|||
},
|
||||
drop: function(event) {
|
||||
$('#importScreen').remove();
|
||||
if (event.originalEvent.dataTransfer.files) {
|
||||
if (event.originalEvent.dataTransfer.files.length) {
|
||||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
oml.upload(event.originalEvent.dataTransfer.files, function(response) {
|
||||
|
|
Loading…
Reference in a new issue