]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Return an empty URL param for empty sortable lists. Fixed #5794 - sortable...
authorHolger Rüprich <holger@rueprich.de>
Sun, 4 Jul 2010 22:29:09 +0000 (06:29 +0800)
committerScott González <scott.gonzalez@gmail.com>
Fri, 16 Jul 2010 19:06:04 +0000 (03:06 +0800)
ui/jquery.ui.sortable.js

index a51f543c5443e89dd25584023fc78c7e99a2f355..6cc2434e8e33d7d4661c1390140f14da9882bed6 100644 (file)
@@ -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('&');
 
        },