properly block file upload to non-active filelist

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-07-10 14:32:10 +02:00
parent 38ee24d56b
commit d05f67b2f3
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}