Skip to content
Permalink
Browse files

sortable: moved serialize brackets after every key to default value, …

…so configuring it as well using the key option is possible
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Aug 19, 2008
1 parent 1de76c6 commit fd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.sortable.js
@@ -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('&');

0 comments on commit fd1f2e0

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