diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-26 10:00:32 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-26 10:00:32 +0000 |
commit | 980fbbea512dd25be499fdb2449f19445c420cc4 (patch) | |
tree | d6e9e4957409dbfdd5221670b5b4aa3cb4bfc1fa /ui/ui.sortable.js | |
parent | 3e5e8704c148eb13d2ab80bec6511914db835a45 (diff) | |
download | jquery-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.js | 2 |
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('&'); |