aboutsummaryrefslogtreecommitdiffstats
path: root/demos/draggable/sortable.html
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-08 14:03:34 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-08 14:03:34 +0000
commit38352471555ffdb8ae2f5084a56aa512e3190c86 (patch)
tree2cc120cdb426e211f155cb1599147f543e2e5bc1 /demos/draggable/sortable.html
parent89338159e41c2d35f1f2ed2a6a0ddfc55b122767 (diff)
downloadjquery-ui-38352471555ffdb8ae2f5084a56aa512e3190c86.tar.gz
jquery-ui-38352471555ffdb8ae2f5084a56aa512e3190c86.zip
draggable: revert 'invalid/valid' now works with dropping on sortables (fixes #3556), beautified demo of connectToSortable demonstrating the reverts on both draggable and sortable
Diffstat (limited to 'demos/draggable/sortable.html')
-rw-r--r--demos/draggable/sortable.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/draggable/sortable.html b/demos/draggable/sortable.html
index a39b4e96d..53abb8649 100644
--- a/demos/draggable/sortable.html
+++ b/demos/draggable/sortable.html
@@ -14,10 +14,13 @@
</style>
<script type="text/javascript">
$(function() {
- $("#sortable").sortable();
+ $("#sortable").sortable({
+ revert: true
+ });
$("#draggable").draggable({
connectToSortable: ['#sortable'],
- helper: 'clone'
+ helper: 'clone',
+ revert: 'invalid'
});
});
</script>