mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 04:48:01 -05:00
sortable: fixed serialize issue when a key was specified as option, but no custom expression
This commit is contained in:
@@ -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('&');
|
||||
|
||||
Reference in New Issue
Block a user