Here is an example double list thing: http://jsfiddle.net/xhdUW/
If one of the parent lists already has content, the list items will transfer between the parent lists easily. But if one of the parent lists is empty, the list items will not go into the empty parent list.
The docs on .sortable say that transferring to empty lists should be enabled by default: http://jqueryui.com/demos/sortable/#empty-lists , though, even when I specify dropOnEmpty: true, I get the same behavior.
Your empty list have no height and no vertical padding.
Try to add something from list:
padding-top
padding-bottom
min-height
You have heavily abused the sortable API. See http://jsfiddle.net/6xkQE/ how it gets done right.
You have to use connectWith
with what you want to connect!
As @hadvig mentioned, you have to set min-height
!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With