Hi Will,
Will Merrell wrote:
> It appears that the user can move a node and drop it as a leaf under a
> branch, but only if that branch already has at least one leaf under the
> branch.
What you want to achieve is already possible with the scriptaculous
sortable tree functionality.
You need to give leaf LIs at least an empty <ul>.
Example:
<li>
I am a leaf node.
<ul></ul>
</li>
This, together with the following CSS makes it possible to drag items
even into leaf nodes.
ul {
min-height: 4px;
}
The great thing about this is, that you can distinguish between leaf
nodes that other items *can* be dragged into and those that other items
*cannot* be dragged into be putting an empty <ul> into them or not.
cheers
Ingmar
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs