I have a few problems with sortable list in sortable list. I'd like to make a page where I can sort elements in rows and in columns.
This is js code for sortable:
$("#page, .column").sortable({
connectWith: ['#page', '.column'],
items: '.a',
dropOnEmpty: true,
handle: '.portlet-header',
cursor: "move",
cursorAt: { cursor: "crosshair", top: 0, left: 0 },
opacity: 0.2
});
I use 960 grid system and I have a specific html (see full example)
Problems:
- When I move elements from row to column, I can't move them back
- When I sort rows, I can't because when I move some row behind the row which has columns it can move out and I must put this element in some of the columns
- I'm not comfortable while dragging an element in the page because I can't locate position easily where I'd like to drop element if someone can solve this problem too
If someone could make this example functional, it would be great.
Thanks in advance and sorry for my English.