mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
add new file above summary if it is the first file in the list
This commit is contained in:
parent
3abe68176f
commit
cb81ceb31d
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue