tell anonymous users they can't upload
This commit is contained in:
parent
45f180955b
commit
1763cf72d1
@ -242,6 +242,10 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var onFileDrop = File.onFileDrop = function (file, e) {
|
var onFileDrop = File.onFileDrop = function (file, e) {
|
||||||
|
if (!common.isLoggedIn()) {
|
||||||
|
return common.alert(common.Messages.upload_mustLogin);
|
||||||
|
}
|
||||||
|
|
||||||
Array.prototype.slice.call(file).forEach(function (d) {
|
Array.prototype.slice.call(file).forEach(function (d) {
|
||||||
handleFile(d, e);
|
handleFile(d, e);
|
||||||
});
|
});
|
||||||
@ -273,6 +277,7 @@ define([
|
|||||||
})
|
})
|
||||||
.on('drop', function (e) {
|
.on('drop', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
var dropped = e.originalEvent.dataTransfer.files;
|
var dropped = e.originalEvent.dataTransfer.files;
|
||||||
counter = 0;
|
counter = 0;
|
||||||
$hoverArea.removeClass('hovering');
|
$hoverArea.removeClass('hovering');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user