If you specify 'handle' for a Sortable, then items with a handle are
sortable by that handle only. Items without that handle are still
sortable in the non-handle way...
This patch prevents the items without a handle from being dragged.
[code]
<ul id="mylist">
<li>item 1</li>
<li>item 2</li>
<li>
<img class="myhandle" src="img/handle.png"/>
item 3 (draggable)
</li>
<li>item 4</li>
<li>
<img class="myhandle" src="img/handle.png"/>
item 5 (draggable)
</li>
</ul>
[/code]
In your code, you just use
Sortable.create('mylist', {handle:'myhandle', handle_only:true});
I have a patch against head, but would see if there's interest in it
first. It's essentially about 4 lines of code that need to be
added/changed.
Ciao, Marc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---