Hi Paul,

The "items"-option has the effect that the non-matching items are
completely excluded from sorting, so they are not part of the sorting-
list...

i allready found the solution for my problem (and posted it
here...somehow my posts take a while to
appear...*grrrrlookatadmin* ;))

the right option is "handle" and the selector-syntax is the default
jquery selector syntax, so the solution is:

$('#mylist').sortable({
   handle: $('#mymoveableitem')
});

well, thx anyway :)

On 5 Nov., 15:23, "Paul Bakaus" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> try using the items option for that:
>
> items: '> *:not(#mymoveableitem)'
>
>
>
> On Wed, Nov 5, 2008 at 9:09 AM, leberle <[EMAIL PROTECTED]> wrote:
>
> > Hi dudes,
>
> > I have a sortable list, but i only want one element in the list be
> > moveable by the user. I thought of something like
>
> > $('.menu_list').sortable({
> >                axis: 'y',
> >                cancel: 'not(#mymoveableitem)';
> > });
>
> > but this doesn't work, nothing is moveable then.
> > I also tried
>
> > $('.menu_list').sortable({
> >                axis: 'y',
> >                start: function(e, ui) {
> >                    if (e.target.innerHTML != 'new entry') {
> >                         ui.cancel();
> >                    }
> > });
>
> > which doesn't work either and has strange side effects.
>
> > Any suggestions?
>
> > (another google-groups related question: i posted more or less the
> > same yesterday but it didn't appear in the list...i thought that posts
> > from new members get approved by admins or something like that..? As a
> > whole day passed, i repost...if i get something wrong: sorry)
>
> --
> Paul Bakaus
> UI Architect
> --http://paulbakaus.comhttp://www.linkedin.com/in/paulbakaus

--~--~---------~--~----~------------~-------~--~----~
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