dragging over folder will highlight folder only
This commit is contained in:
parent
6214420974
commit
aecdcf737f
|
@ -77,6 +77,14 @@
|
|||
background-color: rgb(179, 230, 255);
|
||||
}
|
||||
|
||||
.app-files #app-content.dir-drop, .file-drag #filestable tbody tr{
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.app-files #app-content.dir-drop #filestable tbody tr.dropping-to-dir{
|
||||
background-color: rgb(179, 230, 255);
|
||||
}
|
||||
|
||||
.dropping-to-dir .thumbnail {
|
||||
background-image: url(/nextcloud/core/img/filetypes/folder-drag-accept.svg)!important;
|
||||
}
|
||||
|
|
|
@ -674,15 +674,18 @@ OC.Upload = {
|
|||
|
||||
if(!filerow.hasClass('dropping-to-dir')){
|
||||
$('.dropping-to-dir').removeClass('dropping-to-dir');
|
||||
$('.dir-drop').removeClass('dir-drop');
|
||||
}
|
||||
|
||||
if(filerow.attr('data-type') === 'dir'){
|
||||
$('#app-content').addClass('dir-drop');
|
||||
filerow.addClass('dropping-to-dir');
|
||||
}
|
||||
});
|
||||
fileupload.on('fileuploaddragleave fileuploaddrop', function (e, data){
|
||||
$('#app-content').removeClass('file-drag');
|
||||
$('.dropping-to-dir').removeClass('dropping-to-dir');
|
||||
$('.dir-drop').removeClass('dir-drop');
|
||||
});
|
||||
} else {
|
||||
// for all browsers that don't support the progress bar
|
||||
|
|
Loading…
Reference in New Issue