mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 12:19:58 +01:00
Fixed buggy file upload container (#1841)
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
@@ -78,7 +78,8 @@ body > .container-fluid {
|
||||
}
|
||||
|
||||
.hover {
|
||||
background: #eee;
|
||||
border: 4px dashed #888888;
|
||||
background: #F0F0F0;
|
||||
}
|
||||
|
||||
.step {
|
||||
|
||||
@@ -114,10 +114,10 @@ function setInputStepInit() {
|
||||
dropzone[0].addEventListener('drop', handleFile, false);
|
||||
|
||||
dropzone.on('dragover', function onDragover(e) {
|
||||
e.stopPropagation();
|
||||
dropzone.addClass('hover');
|
||||
e.preventDefault();
|
||||
e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
|
||||
}, false);
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
dropzone.on('dragenter', function onDragEnter(e) {
|
||||
dropzone.addClass('hover');
|
||||
@@ -127,6 +127,11 @@ function setInputStepInit() {
|
||||
dropzone.removeClass('hover');
|
||||
});
|
||||
|
||||
dropzone.on('drop', function onDrop(e) {
|
||||
dropzone.removeClass('hover');
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user