Skip to content
Snippets Groups Projects
Commit 8ae2066b authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Merge pull request #4037 from owncloud/add_new_file_above_summary

add new file above summary if it is the first file in the list
parents b16c5a6d cb81ceb3
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,8 @@ var FileList={
}
}else if(type=='dir' && $('tr[data-file]').length>0){
$('tr[data-file]').first().before(element);
} else if(type=='file' && $('tr[data-file]').length>0) {
$('tr[data-file]').last().before(element);
}else{
$('#fileList').append(element);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment