]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable demos: Updated all uses of connectWith to use a string instead of an array...
authorScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 01:06:42 +0000 (01:06 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 01:06:42 +0000 (01:06 +0000)
demos/sortable/connect-lists.html
demos/sortable/empty-lists.html
demos/sortable/portlets.html

index e0f0c40f3cb99cc0a64268b17b8f28501d7a9ae0..3bf0ea732a7596e528a9a666f28ad9cdb56017b0 100644 (file)
@@ -14,7 +14,7 @@
        <script type="text/javascript">
        $(function() {
                $("#sortable1, #sortable2").sortable({
-                       connectWith: ['.connectedSortable']
+                       connectWith: '.connectedSortable'
                }).disableSelection();
        });
        </script>
 <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 -->
index 660d6d91b22c065f59c53d4398b08ac613652ba4..daf41e1afe5815288f0ca26f3ba6210a65179831 100644 (file)
        <script type="text/javascript">
        $(function() {
                $("ul.droptrue").sortable({
-                       connectWith: ['ul']
+                       connectWith: 'ul'
                });
 
                $("ul.dropfalse").sortable({
-                       connectWith: ['ul'],
+                       connectWith: 'ul',
                        dropOnEmpty: false
                });
        });
index d98b83c84f591f74e2fe7a290e42c3c5ee58d5e3..09257bd286947687b3879b34f55854e2b3075b2a 100644 (file)
@@ -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")