|
|
@ -220,14 +220,14 @@ define([
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
counter++;
|
|
|
|
counter++;
|
|
|
|
$label.addClass('hovering');
|
|
|
|
$hoverArea.addClass('hovering');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.on('dragleave', function (e) {
|
|
|
|
.on('dragleave', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
counter--;
|
|
|
|
counter--;
|
|
|
|
if (counter <= 0) {
|
|
|
|
if (counter <= 0) {
|
|
|
|
$label.removeClass('hovering');
|
|
|
|
$hoverArea.removeClass('hovering');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -240,7 +240,7 @@ define([
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
var dropped = e.originalEvent.dataTransfer.files;
|
|
|
|
var dropped = e.originalEvent.dataTransfer.files;
|
|
|
|
counter = 0;
|
|
|
|
counter = 0;
|
|
|
|
$label.removeClass('hovering');
|
|
|
|
$hoverArea.removeClass('hovering');
|
|
|
|
|
|
|
|
|
|
|
|
Array.prototype.slice.call(dropped).forEach(function (d) {
|
|
|
|
Array.prototype.slice.call(dropped).forEach(function (d) {
|
|
|
|
todo(d);
|
|
|
|
todo(d);
|
|
|
|