#1958 closed enhancement (fixed)
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
Change History (5)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Owner: | set to paul |
---|---|
Status: | new → assigned |
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
works in 1.5a (or current SVN).
comment:5 Changed 14 years ago by
Milestone: | → 1.5 |
---|
Note: See
TracTickets for help on using
tickets.
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