diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-08-19 09:04:07 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-08-19 09:04:07 +0000 |
commit | fd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5 (patch) | |
tree | b27523bd54c2f9fd0cd2a052553e2d6f751e5e97 | |
parent | 1de76c6f779a9939a9114f56018e6d52846157e0 (diff) | |
download | jquery-ui-fd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5.tar.gz jquery-ui-fd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5.zip |
sortable: moved serialize brackets after every key to default value, so configuring it as well using the key option is possible
-rw-r--r-- | ui/ui.sortable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 9ca6519cc..7880a2b83 100644 --- a/ui/ui.sortable.js +++ b/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('&'); |