From 0552933770501061ba34f72955176a2f0ecd3f46 Mon Sep 17 00:00:00 2001 From: Vincent Chan Date: Thu, 23 Jun 2016 11:25:03 +0200 Subject: [PATCH] changes emptycontent icon to drag-accept on file-drag --- apps/files/js/file-upload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 2453cc5207..d5470d0be5 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -669,13 +669,14 @@ OC.Upload = { }); fileupload.on('fileuploaddragover', function(e){ $('#app-content').addClass('file-drag'); + $('#emptycontent .icon-folder').addClass('icon-filetype-folder-drag-accept'); var filerow = $(e.delegatedEvent.target).closest('tr'); if(!filerow.hasClass('dropping-to-dir')){ + $('.dropping-to-dir .icon-filetype-folder-drag-accept').removeClass('icon-filetype-folder-drag-accept'); $('.dropping-to-dir').removeClass('dropping-to-dir'); $('.dir-drop').removeClass('dir-drop'); - $('.icon-filetype-folder-drag-accept').removeClass('icon-filetype-folder-drag-accept'); } if(filerow.attr('data-type') === 'dir'){