a workarond to have selectable in sortables
<div dir="ltr">Hi,
My app needs items of a sortable to be selected and dragged togher inside (other) sortable,
but UI seems cannot handle this
my approach:
since height is different for each element I had to resize the first
one to the lenght of the all selected, then I hide all selected but the first,
then I can drag the visible one. Once dropped, i resize the visible one to
it's original size, then move the invisibiles inside the dom just
under the visible element, and finall show() again the invisibiles
here a working demo <a href="http://pastebin.me/489ec75dd3fa9" target="_blank">http://pastebin.me/489ec75dd3fa9</a>
now the bugs:
*** I cannot make it works with multiple sortables list using
connectwith (wich is my primary goal check it at
<a href="http://pastebin.me/489ed3f107b89" target="_blank">http://pastebin.me/489ed3f107b89</a> )
*** works only dragging up.. the original item does not restore to its
height when moving item down on the list
This is my firt non-trivial jQ app, so code style it's sure not the best, for example:
*** I was not able to pass the collection array from selectable to sortable
*** i was not able to store (or read from original inline css) original height of the dragged one (so I recalculate it)
any suggest-help with stylecode and the two bus is much appreciated. tnx
POST<SCRITP>
plz forgive ME if u this this post twice .. it seems strange it does not appear on group after 5 hours
</div>