Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#2347 closed bug (wontfix)

Sortable : callback called before sort really stop

Reported by: Nodashi Owned by: paul
Priority: major Milestone:
Component: ui.core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


If you want to use a callback function when the sort stop/update this callback function is called before the sort stop. So you have a "ghost" of the element you want to move.

In my case i sort div elements that contains hidden input.

You can use this callback function to show the problem :

fonction(e, ui){
    $('div.sortable input[class="order"]').each(function(i){

however if you use console.log whith firebug you will not see this "ghost" element

Change History (3)

comment:1 Changed 14 years ago by Nodashi

I forgot i use the 1.5b version of UI ;)

comment:2 Changed 14 years ago by paul

Resolution: wontfix
Status: newclosed

This is needed because some people want to still track changes on the helper in that callback. However, it's easy to filter out that element, because it has a helper class named 'ui-sortable-helper' assigned to it. So you could do

$('div.sortable input[class="order"]').not('.ui-sortable.helper')

comment:3 Changed 13 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

Note: See TracTickets for help on using tickets.