stephenmcd/mezzanine — pull request #507 by rockymeza (2012-12-15 05:33:45+00:00)
Title: Adds the ability to move a page under a page with no children

I switched to using the jQuery nestedSortable plugin instead of the
sortable plugin provided by jQuery UI, because Pages actually being in a
tree structure, they need a tree editor. This commit temporarily breaks
some functionality such as remembering which pages were open and closed.

This pull request is our attempt to resolve #501.

@stephenmcd, before you merge this, I would like to revisit the saved `tree-toggle` functionality. I had to break it a little because the CSS was preventing nestedSortable from working correctly. I will make it work again, but I just wanted to get this commit together before I start wrapping my head around that bit.

Also, for the record, I didn't want to change the `

`s to `

`s, but I couldn't get nestedSortable to work with it. `

` is technically a more semantic element though, because the pages are ordered.