Hi dudes,

I'm currently trying to create a sortable list which should just one
element allow to move within the list...

Here is a simplified version of my try:

jquery:
$('.menu_list').sortable({
                axis: 'y',
                cancel: 'not(#moveable_item)',
});

html:
<ul class="menu_list">
<li id="moveable_item">new entry</li>
<li>Point 1</li>
<li>Point 2</li>
<li>Point 3</li>
<li>Point 4</li>
</ul>

This doesn't work, no item is moveable/sortable. I guess i can use the
"start" option to prevent other items from beeing moved, but i hadn't
figured out how to stop a on-going sort functional. I had something
like this on my mind:

$('.menu_list').sortable({
                axis: 'y',
                start: function(e, ui) {
                    if (e.target.innerHTML != 'new entry') {
                        somecodetostopthesorting(); <?>
                    }
                }
});

so....help? :D

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to