Hello, here is the initial patch for support for sortable trees. Please as many people download this code and test with your lists and feel free to add more list tests.

Files modified were dragdrop.js and prototype.js.

Some new options have been added. 'treeTag' specifies the tag used to contain children elements. 'tree' must be set to true for this additional functionality to work.

Greedy has been removed as it does not work with tree lists. There are severe performance problems with dragdrop which need to be addressed, but I don't have the time at the moment. I have optimized some basic parts of the code, I've done profiling also using the Venkman javascript debugger.

Please send me or fix any bugs, please send as a zip with the HTML causing the problem along with any code you have adjusted from the repository.

If anyone has any serious ideas about how to improve performance, feel free to submit them as they would be very welcome.

http://www.oriontransfer.co.nz/Sortable+List+v2.zip

Sammi

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to