Skip to main content

Search and Top Navigation

#2554 closed bug (fixed)

Opened March 19, 2008 01:57PM UTC

Closed March 25, 2008 03:38PM UTC

Last modified February 26, 2009 12:01PM UTC

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:
Description

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

example:

$('.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 || (/(.+)[-=_](.+)/));
Attachments (0)
Change History (3)

Changed March 25, 2008 03:38PM UTC by paul comment:1

resolution: → fixed
status: newclosed

Fixed in rev.5122 in trunk. Thanks!

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 12:01PM UTC by paul comment:3

milestone: → 1.5