Skip to content

Commit

Permalink
sortable: moved serialize brackets after every key to default value, …
Browse files Browse the repository at this point in the history
…so configuring it as well using the key option is possible
  • Loading branch information
Paul Bakaus committed Aug 19, 2008
1 parent 1de76c6 commit fd1f2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {

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

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

0 comments on commit fd1f2e0

Please sign in to comment.