From: Björn Schießle Date: Fri, 12 Jul 2013 08:40:24 +0000 (+0200) Subject: add new file above summary if it is the first file in the list X-Git-Tag: v6.0.0alpha2~464^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb81ceb31d1a5aba8f1febfafecdcc2106822168;p=nextcloud-server.git add new file above summary if it is the first file in the list --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index cf3ce2e5089..c847e2eff8b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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); }