diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-01 01:06:42 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-01 01:06:42 +0000 |
commit | 5c155719a81e18f4cc88f2de2388bc42c6732db5 (patch) | |
tree | af2295317da53e452ad445d0e740c193b38123d9 /demos/sortable | |
parent | b642b98619f6c8dcc65e9d0d4fcb075fa46f5d99 (diff) | |
download | jquery-ui-5c155719a81e18f4cc88f2de2388bc42c6732db5.tar.gz jquery-ui-5c155719a81e18f4cc88f2de2388bc42c6732db5.zip |
Sortable demos: Updated all uses of connectWith to use a string instead of an array (array is deprecated).
Diffstat (limited to 'demos/sortable')
-rw-r--r-- | demos/sortable/connect-lists.html | 6 | ||||
-rw-r--r-- | demos/sortable/empty-lists.html | 4 | ||||
-rw-r--r-- | demos/sortable/portlets.html | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/sortable/connect-lists.html b/demos/sortable/connect-lists.html index e0f0c40f3..3bf0ea732 100644 --- a/demos/sortable/connect-lists.html +++ b/demos/sortable/connect-lists.html @@ -14,7 +14,7 @@ <script type="text/javascript"> $(function() { $("#sortable1, #sortable2").sortable({ - connectWith: ['.connectedSortable'] + connectWith: '.connectedSortable' }).disableSelection(); }); </script> @@ -43,10 +43,10 @@ <div class="demo-description"> <p> - Sort items from one list into another and vice versa, by passing an array into + Sort items from one list into another and vice versa, by passing a selector into the <code>connectWith</code> option. The simplest way to do this is to group all related lists with a CSS class, and then pass that class into the - sortable function using array notation (i.e., <code>connectWith: ['.myclass']</code>). + sortable function (i.e., <code>connectWith: '.myclass'</code>). </p> </div><!-- End demo-description --> diff --git a/demos/sortable/empty-lists.html b/demos/sortable/empty-lists.html index 660d6d91b..daf41e1af 100644 --- a/demos/sortable/empty-lists.html +++ b/demos/sortable/empty-lists.html @@ -14,11 +14,11 @@ <script type="text/javascript"> $(function() { $("ul.droptrue").sortable({ - connectWith: ['ul'] + connectWith: 'ul' }); $("ul.dropfalse").sortable({ - connectWith: ['ul'], + connectWith: 'ul', dropOnEmpty: false }); }); diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html index d98b83c84..09257bd28 100644 --- a/demos/sortable/portlets.html +++ b/demos/sortable/portlets.html @@ -19,7 +19,7 @@ <script type="text/javascript"> $(function() { $(".column").sortable({ - connectWith: ['.column'] + connectWith: '.column' }); $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all") |