diff options
author | Robin Appelman <robin@icewind.nl> | 2017-07-10 14:32:10 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-07-12 12:20:10 +0200 |
commit | d05f67b2f3eec245ac09ecdbff4dcedbfe7645c3 (patch) | |
tree | 6e6edfbdc51d71f7f879e32028a952b6fe6b94e7 /apps | |
parent | 38ee24d56be61180cd9952a02ebb166d980ed592 (diff) | |
download | nextcloud-server-d05f67b2f3eec245ac09ecdbff4dcedbfe7645c3.tar.gz nextcloud-server-d05f67b2f3eec245ac09ecdbff4dcedbfe7645c3.zip |
properly block file upload to non-active filelist
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 b1e7c3f5f8c..45591e5b7a0 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2737,6 +2737,7 @@ if (self.$el.hasClass('hidden')) { // do not upload to invisible lists + e.preventDefault(); return false; } @@ -2748,6 +2749,7 @@ && !self.$el.has(dropTarget).length // dropped inside list && !dropTarget.is(self.$container) // dropped on main container ) { + e.preventDefault(); return false; } |