aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 3d0385f08ad..d53ce1bd7ec 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -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