diff options
author | Vincent Chan <plus.vincchan@gmail.com> | 2016-06-23 11:25:03 +0200 |
---|---|---|
committer | Vincent Chan <plus.vincchan@gmail.com> | 2016-06-23 11:25:03 +0200 |
commit | 0552933770501061ba34f72955176a2f0ecd3f46 (patch) | |
tree | 00f8b3267f779e3152a533e895f943111f0546e2 /apps/files/js | |
parent | 77c11758945f863e9bbf91a2e08952ea6999c237 (diff) | |
download | nextcloud-server-0552933770501061ba34f72955176a2f0ecd3f46.tar.gz nextcloud-server-0552933770501061ba34f72955176a2f0ecd3f46.zip |
changes emptycontent icon to drag-accept on file-drag
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/file-upload.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 2453cc5207c..d5470d0be55 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'){ |