Skip to main content

Search and Top Navigation

#4009 closed bug (fixed)

Opened January 30, 2009 06:18PM UTC

Closed February 05, 2009 04:21AM UTC

connectToSortable doesn't contain ui.item in callbacks

Reported by: natecavanaugh Owned by: scottgonzalez
Priority: blocker Milestone: 1.7
Component: ui.sortable Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:
Description

If you try to use the connectToSortable, callbacks registered to an event, such as receive or activate do not contain the ui.item element.

You can test this with the following code in tests/visual/sortable/sortable_massive_scale.html

$(function() {

var uls = $('ul').not(".draggable");

uls.sortable({ items: "li", connectWith: [uls], });

$("ul.draggable li").draggable({ helper: "clone", connectToSortable: "ul"});

uls.bind('sortablereceive', function(event, ui) {

console.log('sortablereceive', this, arguments, ui.item);

});

});

Attachments (0)
Change History (5)

Changed January 31, 2009 12:22AM UTC by Marc Diethelm comment:1

confirmed.

this is a blocker imo.

Changed January 31, 2009 02:04AM UTC by rdworth comment:2

milestone: TBD1.6
priority: criticalblocker

Changed February 05, 2009 04:05AM UTC by scottgonzalez comment:3

owner: → scott.gonzalez
status: newaccepted

Changed February 05, 2009 04:13AM UTC by scottgonzalez comment:4

Receive event fixed in r1999.

Changed February 05, 2009 04:21AM UTC by scottgonzalez comment:5

resolution: → fixed
status: acceptedclosed

Should be fixed in r2000.