Skip to main content

Search and Top Navigation

#5449 closed bug (notabug)

Opened March 30, 2010 02:07PM UTC

Closed March 30, 2010 03:55PM UTC

Last modified March 30, 2010 08:24PM UTC

Draggable stack not working (found problem and fixed)

Reported by: epimorg Owned by:
Priority: critical Milestone: 1.9.0
Component: ui.draggable Version: 1.8
Keywords: stack group draggable Cc:
Blocked by: Blocking:
Description

Hi,

I tryed to use the new 1.8 draggable in a project and found that the stack option is not working and fixed it. Hope it helps:

Line 769 or around looks like this:

var group = $.makeArray($(o.stack)).sort(function(a,b) {

and should be, in my opinion, like this:

var group = $.makeArray($(o.stack.group)).sort(function(a,b) {

and now

stack: {group: '.post-it', min: 1} 

works as expected (by me at least) on all elements with a "post-it" class.

Attachments (0)
Change History (3)

Changed March 30, 2010 03:55PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

The stack option was changed to just be a selector. See the 1.8 upgrade guide and the associated ticket.

Changed March 30, 2010 03:57PM UTC by scottgonzalez comment:2

Sorry, the upgrade guide was linking to the wrong ticket, here's the correct one: http://dev.jqueryui.com/ticket/4365

Changed March 30, 2010 08:24PM UTC by epimorg comment:3

I undestand now. I can use a class selector as a value for stack instead of the object and forget about the ''min'' parameter.

Thank you