Merge pull request #208 from nextcloud/drag-accept-icon-for-emptycontent

changes emptycontent icon to drag-accept on file-drag
This commit is contained in:
William Bargent 2016-06-23 11:56:40 +01:00 committed by GitHub
commit 3f2b3a3aab
1 changed files with 2 additions and 1 deletions

View File

@ -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'){