aboutsummaryrefslogtreecommitdiffstats
path: root/demos/sortable/distance.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-05 19:42:08 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-05 19:42:08 +0000
commit5bfbbf79f385a46a9d5a4851bade2693b51deeaa (patch)
tree40944f99fa4809237e9e0eae3d393a2c9912f570 /demos/sortable/distance.html
parent373a7e9e70b96f98196136d9951024a0912b31ea (diff)
downloadjquery-ui-5bfbbf79f385a46a9d5a4851bade2693b51deeaa.tar.gz
jquery-ui-5bfbbf79f385a46a9d5a4851bade2693b51deeaa.zip
Sortable demos: Using ids for selectors.
Diffstat (limited to 'demos/sortable/distance.html')
-rw-r--r--demos/sortable/distance.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/sortable/distance.html b/demos/sortable/distance.html
index 0d0a89448..564b307a1 100644
--- a/demos/sortable/distance.html
+++ b/demos/sortable/distance.html
@@ -13,7 +13,7 @@
</style>
<script type="text/javascript">
$(function() {
- $(".demo ul:eq(0)").sortable({
+ $("#sortable").sortable({
distance: 50
});
});
@@ -24,7 +24,7 @@
<p>Distance of 50px</p>
-<ul>
+<ul id="sortable">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 2</li>
<li class="ui-state-default">Item 3</li>