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
This commit is contained in:
Kondou 2013-07-12 03:45:45 -07:00
commit 8ae2066b20
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}