mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 00:51:10 -04:00
properly block file upload to non-active filelist
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
38ee24d56b
commit
d05f67b2f3
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue