aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-26 10:00:32 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-26 10:00:32 +0000
commit980fbbea512dd25be499fdb2449f19445c420cc4 (patch)
treed6e9e4957409dbfdd5221670b5b4aa3cb4bfc1fa /ui/ui.sortable.js
parent3e5e8704c148eb13d2ab80bec6511914db835a45 (diff)
downloadjquery-ui-980fbbea512dd25be499fdb2449f19445c420cc4.tar.gz
jquery-ui-980fbbea512dd25be499fdb2449f19445c420cc4.zip
sortable: fixed serialize issue when a key was specified as option, but no custom expression
Diffstat (limited to 'ui/ui.sortable.js')
-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 4dc9479f9..87eda5c06 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -69,7 +69,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
items.each(function() {
var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
- if(res) str.push((o.key || res[1])+'[]='+(o.key ? res[1] : res[2]));
+ if(res) str.push((o.key || res[1])+'[]='+(o.key && o.expression ? res[1] : res[2]));
});
return str.join('&');