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

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details