Skip to content
Permalink
Browse files

Sortable demos: Updated all uses of connectWith to use a string inste…

…ad of an array (array is deprecated).
  • Loading branch information
scottgonzalez committed Feb 1, 2009
1 parent b642b98 commit 5c155719a81e18f4cc88f2de2388bc42c6732db5
Showing with 6 additions and 6 deletions.
  1. +3 −3 demos/sortable/connect-lists.html
  2. +2 −2 demos/sortable/empty-lists.html
  3. +1 −1 demos/sortable/portlets.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 -->
@@ -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
});
});
@@ -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")

0 comments on commit 5c15571

Please sign in to comment.
You can’t perform that action at this time.