Skip to main content

Search and Top Navigation

#2256 closed bug (fixed)

Opened January 30, 2008 05:02PM UTC

Closed February 07, 2008 06:20PM UTC

Last modified February 26, 2009 11:24AM UTC

Sortable options 'update' and 'stop' do not fire

Reported by: agentrickard Owned by: paul
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.2
Keywords: jquery-ui 1.0 Cc:
Blocked by: Blocking:
Description

http://docs.jquery.com/UI/Sortables/sortable#options

As far as I can tell, the 'start', 'change' and 'sort' optional functions fire correctly. But 'update' and 'stop' do not.

The stopIt() function includes this commented out:

Let's see if the position in DOM has changed

if($(self.element).prev()[0] != that.firstSibling) {

$(self.element).triggerHandler("sortupdate", [e, that.prepareCallbackObj(self, that)], o.update);

}

More information available if needed.

Attachments (0)
Change History (4)

Changed January 31, 2008 07:06PM UTC by agentrickard comment:1

When the above line is uncommented, an exception is thrown because self.pos returns null on line 91.

Commenting out line 91 allows the 'update' function to fire.

// position: { left: self.pos[0], top: self.pos[1] },

Not sure what else to do or report here.

Changed February 07, 2008 06:20PM UTC by paul comment:2

resolution: → fixed
status: newclosed

This is fixed in version 1.5a. Thanks.

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.3

Milestone 1.2.3 deleted

Changed February 26, 2009 11:24AM UTC by paul comment:4

milestone: → 1.5