diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-10 12:14:05 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-10 12:14:05 +0100 |
commit | 6b5a7035ee4aa5306ccd13a5e0909f786697e588 (patch) | |
tree | 2591192202f14c0d14012fbfab87a3917bb079e4 /apps/files/js | |
parent | e156f85bfb7ea1b6d74227a49507e1a3b0e0e374 (diff) | |
parent | af7366cd30f0df27cc1043f2c2b55def836d03db (diff) | |
download | nextcloud-server-6b5a7035ee4aa5306ccd13a5e0909f786697e588.tar.gz nextcloud-server-6b5a7035ee4aa5306ccd13a5e0909f786697e588.zip |
Merge pull request #7126 from nickvergessen/issue/6683
Only add files to file list when uploading to current directory
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2883218b2cc..a855d6cbe59 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -922,8 +922,8 @@ $(document).ready(function() { data.context.find('td.filesize').text(humanFileSize(size)); } else { - // only append new file if dragged onto current dir's crumb (last) - if (data.context && data.context.hasClass('crumb') && !data.context.hasClass('last')) { + // only append new file if uploaded into the current folder + if (file.directory !== FileList.getCurrentDirectory()) { return; } |