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
|
@ -2737,6 +2737,7 @@
|
||||||
|
|
||||||
if (self.$el.hasClass('hidden')) {
|
if (self.$el.hasClass('hidden')) {
|
||||||
// do not upload to invisible lists
|
// do not upload to invisible lists
|
||||||
|
e.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2748,6 +2749,7 @@
|
||||||
&& !self.$el.has(dropTarget).length // dropped inside list
|
&& !self.$el.has(dropTarget).length // dropped inside list
|
||||||
&& !dropTarget.is(self.$container) // dropped on main container
|
&& !dropTarget.is(self.$container) // dropped on main container
|
||||||
) {
|
) {
|
||||||
|
e.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue