mjsarfatti/nestedSortable — Issue #12: isAllowed() callback does not provide item being moved
Author: tomasm-
Created: 2012-01-26 14:18:49+00:00
State: open

I just downloaded your dev branch....

the isAllowed() callback should pass the item being moved as per what the documentation says. However, what it gets is the parent container and the placeholder.

If you modify _isAllowed() to pass this.currentItem[0] as the first parameter (and shift other parameters over), then this should allow one to see not just where we're moving to but what the item is. In my case, I have a tree of 'pages' and want to sort the items within a given sublist/branch, but not allow the parents to change.

Without knowing what item is being moved, it's impossible to know if the drop location is a different parent or not.