Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sortable: Return an empty URL param for empty sortable lists. Fixed #…

…5794 - sortable("serialize", {key: "foo[]"}) returns an empty string for an empty list
  • Loading branch information...
commit 9d01ab564525f9112c2488ad257637593062b70d 1 parent 325a262
@holger holger authored scottgonzalez committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.sortable.js
View
4 ui/jquery.ui.sortable.js
@@ -409,6 +409,10 @@ $.widget("ui.sortable", $.ui.mouse, {
if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2]));
});
+ if(!str.length && o.key) {
+ str.push(o.key + '=');
+ }
+
return str.join('&');
},

3 comments on commit 9d01ab5

@scottgonzalez

@holger Can you please sign our CLA?

@holger

Done

@scottgonzalez

Thanks.

Please sign in to comment.
Something went wrong with that request. Please try again.