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:
commit
8ae2066b20
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue