diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-08 14:03:34 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-08 14:03:34 +0000 |
commit | 38352471555ffdb8ae2f5084a56aa512e3190c86 (patch) | |
tree | 2cc120cdb426e211f155cb1599147f543e2e5bc1 /demos/draggable/sortable.html | |
parent | 89338159e41c2d35f1f2ed2a6a0ddfc55b122767 (diff) | |
download | jquery-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.html | 7 |
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> |