Hi there,

I think you can try calling $('.sortcontainer').sortable('cancel') in the
drop callback of droppables -
this should revert the sorting (only works in the newest trunk version, not
1.6rc2!).

On Fri, Nov 21, 2008 at 9:34 PM, Aaron Morris <[EMAIL PROTECTED]>wrote:

>
> I have a div that is droppable and immediately below it a list that is
> sortable.  If I drag a list-item from the list and drop it into the
> droppable div, the list still 'thinks' I am sorting it to the top of
> the list, even if the pointer is not within the list (I am using a
> tolerance of 'pointer').  As a result, my drop event gets called
> followed by the update event and the list item is placed at the top of
> the sortable list, which I don't want.
>
> Here is my setup code:
>
> $('.sortcontainer').sortable({
>        axis: 'y',
>        connectWith: ['.sortcontainer'],
>        opacity: 0.5,
>        tolerance: 'pointer',
>        placeholder:'placeholder',
>        start: sortStart,
>        stop: sortStop,
>        out: sortOut,
>        over: sortOver,
>        update: sortUpdate
> });
> $('.dropobject).droppable({
>        accept: '.sortcontainerobj',
>        hoverClass: 'drophover',
>        //drop: dropItem,
>        start: sortStart,
>        stop: sortStop,
>        out: sortOut,
>        over: sortOver,
>        update: sortUpdate
> });
>
> Thanks for any help!
>
> >
>


-- 
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://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