diff options
author | Robin Appelman <robin@icewind.nl> | 2017-07-10 14:32:10 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-07-10 14:32:10 +0200 |
commit | 12c9b1efb077a45a6ef0bf29ac7e5b149539cf49 (patch) | |
tree | 0220e4870eaaa95ab389202f33ab9ae5c9150a11 /apps/files | |
parent | c7b28064e3c8335312a644b94ced602a9f0fea0f (diff) | |
download | nextcloud-server-12c9b1efb077a45a6ef0bf29ac7e5b149539cf49.tar.gz nextcloud-server-12c9b1efb077a45a6ef0bf29ac7e5b149539cf49.zip |
properly block file upload to non-active filelist
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files')
-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 086e148e102..6cf12571ca0 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2742,6 +2742,7 @@ if (self.$el.hasClass('hidden')) { // do not upload to invisible lists + e.preventDefault(); return false; } @@ -2753,6 +2754,7 @@ && !self.$el.has(dropTarget).length // dropped inside list && !dropTarget.is(self.$container) // dropped on main container ) { + e.preventDefault(); return false; } |