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 c7b28064e3
commit 12c9b1efb0
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 2 additions and 0 deletions

View File

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