Will Merrell wrote:
The part I don't understand is how to move a leaf node below an existing leaf node.
[...snip description...]
Am I missing something or is this not yet supported. Is it planned? Does anyone have any suggestions?

You are correct. The Script.aculo.us sortables only supports dragging an object to an already existing subtree. I have a modification of Sortables that allows you to drag a node to a blank subtree.

You can see a demo of this at http://docdemo.cordata.com. Feel free to rip off any code you see that might be useful. My tree does much more than what you need but it should contain what you need. The javascript file you are looking for is:

http://docdemo.cordata.com/javascript/jstree.js

This script is was written before Sortables added tree support and was only retrofitted to work with the native tree support after the fact (to avoid maintaining a patch) so it may not be implemented in the best way.

Eric

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to