I have a sortable list (of tasks). It helps prioritize tasks, so I want to keep this functionality. Now I want to add subtasks to the functionality: I want to enable users to drag one task over to another task and drop it there to turn it into a subtask.
Applying .draggable() and .droppable() to items that are already sortable has no effect. What could I do?
I put together a demo of how to do this… but it may not be the best method. Here are some problems I’ve discovered:
I’m sure there is a better method, one that calculates the intersection of list items (just like the sortable script does). But this is a quick and dirty method.