aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-08-19 09:04:07 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-08-19 09:04:07 +0000
commitfd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5 (patch)
treeb27523bd54c2f9fd0cd2a052553e2d6f751e5e97
parent1de76c6f779a9939a9114f56018e6d52846157e0 (diff)
downloadjquery-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.js2
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('&');