farhadi/html5sortable — pull request #24 by masover (2012-09-26 20:39:00+00:00)
Title: Trigger 'sortupdate' event when dragging to the same index in another list.

Right now, 'sortupdate' is triggered only if the index is different. Thus, if I have a list:

* Foo1
* Foo2
* Foo3

And another list:

* Bar1
* Bar2
* Bar3

If I drag Foo2 into the Bar list, such that the lists are now:

* Foo1
* Foo3

and

* Bar1
* Foo2
* Bar2
* Bar3

In this case, 'sortupdate' is not triggered. Dragging to any other location in the Bar list triggers sortupdate. This patch sends sortupdate if the index is the same, but the parent is different.

I am using this plugin mainly for sorting into _unordered_ lists, rather than _reordering_ existent lists, so this was critical for me.