Skip to content
Permalink
Browse files

sortable: fixed serialize issue when a key was specified as option, b…

…ut no custom expression
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jun 26, 2008
1 parent 3e5e870 commit 980fbbea512dd25be499fdb2449f19445c420cc4
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.sortable.js
@@ -69,7 +69,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {

items.each(function() {
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('&');

0 comments on commit 980fbbe

Please sign in to comment.
You can’t perform that action at this time.