Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2554 closed bug (fixed)

ui.sortable - IE Bug in serialize with custom attribute

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


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 (3)

comment:1 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in rev.5122 in trunk. Thanks!

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:3 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.