diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 10:40:24 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 10:40:24 +0200 |
commit | cb81ceb31d1a5aba8f1febfafecdcc2106822168 (patch) | |
tree | 051b4cbe058b9b1d7a484303cf5414f9cf2ac258 /apps | |
parent | 3abe68176ff09ca579ff9e5f15872fb5cab8ff4d (diff) | |
download | nextcloud-server-cb81ceb31d1a5aba8f1febfafecdcc2106822168.tar.gz nextcloud-server-cb81ceb31d1a5aba8f1febfafecdcc2106822168.zip |
add new file above summary if it is the first file in the list
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |