Skip to content

Commit

Permalink
sortable: fixed serialize issue when a key was specified as option, b…
Browse files Browse the repository at this point in the history
…ut no custom expression
  • Loading branch information
Paul Bakaus committed Jun 26, 2008
1 parent 3e5e870 commit 980fbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.sortable.js
Expand Up @@ -69,7 +69,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {


items.each(function() { items.each(function() {
var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/)); var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
if(res) str.push((o.key || res[1])+'[]='+(o.key ? res[1] : res[2])); if(res) str.push((o.key || res[1])+'[]='+(o.key && o.expression ? res[1] : res[2]));
}); });


return str.join('&'); return str.join('&');
Expand Down

0 comments on commit 980fbbe

Please sign in to comment.