diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-02-07 12:53:42 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-02-07 13:06:50 +0100 |
commit | af7366cd30f0df27cc1043f2c2b55def836d03db (patch) | |
tree | 1c62f2162b68e9bb57000cb1f84a7becd4666c7f /apps/files/js | |
parent | be47e156a5afee8a20f60d278aab45bb84c282c2 (diff) | |
download | nextcloud-server-af7366cd30f0df27cc1043f2c2b55def836d03db.tar.gz nextcloud-server-af7366cd30f0df27cc1043f2c2b55def836d03db.zip |
Only add files to file list when uploading to current directory
Fix Issue #6683
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 f538af10362..e6aefd33c96 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -924,8 +924,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; } |