From fd1f2e08ed8f1ac9b8f4e1e418ca6306d6b700b5 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 19 Aug 2008 09:04:07 +0000 Subject: [PATCH] sortable: moved serialize brackets after every key to default value, so configuring it as well using the key option is possible --- ui/ui.sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('&');