Orderable and dynamic items
A bug in 2.2, submitted by Nils on 31 December 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#454: Orderable and dynamic items
Changing line 132 et sqq. from
object.find(settings.items).each(function() { var item = $(this); var handle = item.find(settings.handles); handle.unbind('mousedown.orderable', start); handle.bind('mousedown.orderable', start); });
to
object.delegate(settings.items + ' ' + settings.handles, 'mousedown.orderable', start);
should fix the issue.
This issue is closed.
The orderable plugin which takes care of sorting in the backend doesn’t handle items that have been added dynamically after the DOM has already been loaded. They just cannot be sorted. The plugin should use
.live()
or.delegate()
to manage its events to prevent this issue.