Sortable events bug
Sortable events bug
If you have a link within a sortable and you use it to begin dragging
asortable and then you release your mouse cursor on that same link
when you drop the sortable, it seems to fire that link.
This is using ui.core.js, ui.draggable.js and ui.sortable.js from the
latest SVN commits (suggested by Paul Bakaus to fix my previous
sortables problem: http://groups.google.com/group/jquery-ui/browse_thread/thread/ad863e1a0f173d1e).
The same behaviour doesn't seem to exist in UI 1.5.2.
Sample code (Try dragging "Google Item"):
<html>
<head>
</head>
<style>
.sortable { list-style: none; }
.sortable a { width: 300px; height: 30px; line-height: 30px;
display: block; color: white; background: blue; color: white; }
</style>
<body>
<ul class="sort" id="list_1">
<li id="i_1" class="sortable"><a href="http://
www.google.co.uk">Item Google</a></li>
<li id="i_2" class="sortable"><a href="#">Item</a></li>
<li id="i_3" class="sortable"><a href="#">Item</a></li>
<li id="i_4" class="sortable"><a href="#">Item</a></li>
</ul>
<script type="text/javascript" src="jquery-1.2.6.packed.js"></
script>
<script type="text/javascript" src="ui.core.js"></script>
<script type="text/javascript" src="ui.draggable.js"></script>
<script type="text/javascript" src="ui.sortable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.sort').sortable();
});
</script>
</body>
</html>