Bug Tracker


Ticket #2554 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

ui.sortable - IE Bug in serialize with custom attribute

Reported by: dachande Owned by: paul
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:


Serializing a sortable in IE with a custom attribute as option returns nothing.


$('.groupWrapper').sortable('serialize', { attribute: 'class' });

I've experimented with ui.sortable.js and found a workaround for this.

Replace line 114 in ui.sortable.js

var res = (this.getAttribute(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));

with the following:

var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));

Change History

comment:1 Changed 6 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in rev.5122 in trunk. Thanks!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.