Search and Top Navigation
#1958 closed enhancement (fixed)
Opened November 22, 2007 03:38PM UTC
Closed February 07, 2008 04:57PM UTC
Last modified February 26, 2009 11:17AM UTC
UI.sortables does not call the callback update
Reported by: | aldur | Owned by: | paul |
---|---|---|---|
Priority: | minor | Milestone: | 1.5 |
Component: | ui.core | Version: | 1.2.1 |
Keywords: | UI sortable callback fix | Cc: | |
Blocked by: | Blocking: |
Description
The following code should call the callback function stopDrag but it doesn't.
$("ul.reorder").sortable({stop: stopDrag}); function stopDrag(e,ui) { alert("updated");}
add the following line at line 190 of ui.sortable.js
$(this.element).triggerHandler("sortstop", [e, that.prepareCallbackObj(this)], o.stop);
and it works
Attachments (0)
Change History (5)
Changed November 22, 2007 03:51PM UTC by comment:1
Changed November 24, 2007 08:47PM UTC by comment:2
owner: | → paul |
---|---|
status: | new → assigned |
Changed February 07, 2008 04:57PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | assigned → closed |
works in 1.5a (or current SVN).
Changed May 24, 2008 03:39AM UTC by comment:4
milestone: | 1.2.2 |
---|
Milestone 1.2.2 deleted
Changed February 26, 2009 11:17AM UTC by comment:5
milestone: | → 1.5 |
---|
oops tested more here is the updated stop function in total notice that the condition inside the stopit function has been removed and the condition added around the call for the callback