I just commented on a recent ticket and its been repopened and
assigned to richard.

http://dev.jqueryui.com/ticket/4303

my fix thanks to some peeps in in IRC was to do the following in your
sortable:

                $("#sortable").sortable({
                        handle: '.handle',
                        forcePlaceholderSize: 'true',
                        receive : function (e, ui) {
                                $(this).data("reveiveflag",true)
                        },
                        stop : function(e,ui){
                                if      ( $(this).data("reveiveflag") == true) {
                                        // DO WHAT YOU WANT HERE
                                        // $(ui.item).attr("id", 
$(ui.item).attr('rel') );
                                        $(this).data("reveiveflag",false)
                                }

                        }
                });

Basically you are setting a data value on the sortable widget that
only lives until the stop method is called, by which time ui actually
points to the dropped item.

Hope that helps :)
http://www.codeofficer.com/
--~--~---------~--~----~------------~-------~--~----~
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