add new file above summary if it is the first file in the list

This commit is contained in:
Björn Schießle 2013-07-12 10:40:24 +02:00
parent 3abe68176f
commit cb81ceb31d
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);
}