Fix drag&drop for pads in the drive

pull/1/head
yflory 8 years ago
parent e51f678bb9
commit 5b523be171

@ -1027,7 +1027,7 @@ define([
// Don't the the normal drop handler for file upload // Don't the the normal drop handler for file upload
var fileDrop = ev.dataTransfer.files; var fileDrop = ev.dataTransfer.files;
if (fileDrop) { return void onFileDrop(fileDrop, ev); } if (fileDrop.length) { return void onFileDrop(fileDrop, ev); }
var oldPaths = JSON.parse(data).path; var oldPaths = JSON.parse(data).path;
if (!oldPaths) { return; } if (!oldPaths) { return; }

Loading…
Cancel
Save