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) {
|
drop: function(event) {
|
||||||
$('#importScreen').remove();
|
$('#importScreen').remove();
|
||||||
if (event.originalEvent.dataTransfer.files) {
|
if (event.originalEvent.dataTransfer.files.length) {
|
||||||
event.originalEvent.preventDefault();
|
event.originalEvent.preventDefault();
|
||||||
event.originalEvent.stopPropagation();
|
event.originalEvent.stopPropagation();
|
||||||
oml.upload(event.originalEvent.dataTransfer.files, function(response) {
|
oml.upload(event.originalEvent.dataTransfer.files, function(response) {
|
||||||
|
|
Loading…
Reference in a new issue