r1940 - trunk/demos/sortable

r1940 - trunk/demos/sortable


Author: scott.gonzalez
Date: Sat Jan 31 17:06:42 2009
New Revision: 1940
Modified:
trunk/demos/sortable/connect-lists.html
trunk/demos/sortable/empty-lists.html
trunk/demos/sortable/portlets.html
Log:
Sortable demos: Updated all uses of connectWith to use a string instead of
an array (array is deprecated).
Modified: trunk/demos/sortable/connect-lists.html
==============================================================================
--- trunk/demos/sortable/connect-lists.html    (original)
+++ trunk/demos/sortable/connect-lists.html    Sat Jan 31 17:06:42 2009
@@ -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">


-    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>).












</div><!-- End demo-description -->
Modified: trunk/demos/sortable/empty-lists.html
==============================================================================
--- trunk/demos/sortable/empty-lists.html    (original)
+++ trunk/demos/sortable/empty-lists.html    Sat Jan 31 17:06:42 2009
@@ -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
        });
    });
Modified: trunk/demos/sortable/portlets.html
==============================================================================
--- trunk/demos/sortable/portlets.html    (original)
+++ trunk/demos/sortable/portlets.html    Sat Jan 31 17:06:42 2009
@@ -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")