diff options
author | Kondou <kondou@ts.unde.re> | 2013-07-12 03:45:45 -0700 |
---|---|---|
committer | Kondou <kondou@ts.unde.re> | 2013-07-12 03:45:45 -0700 |
commit | 8ae2066b203e5420fa48d6717192db7e96343a2a (patch) | |
tree | e60020384908bb96762511c1b5dadb5ec1dca4aa /apps | |
parent | b16c5a6df75a9b5ce0f3e4e7b661184ba24fe3e4 (diff) | |
parent | cb81ceb31d1a5aba8f1febfafecdcc2106822168 (diff) | |
download | nextcloud-server-8ae2066b203e5420fa48d6717192db7e96343a2a.tar.gz nextcloud-server-8ae2066b203e5420fa48d6717192db7e96343a2a.zip |
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
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); } |