sortable serialize broken when the items option is used
See the code below. If the items option is commented out, it works
correctly,
but with the items turned on, serialize always seems to return the
original order.
Any ideas?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<script type="text/javascript" src="/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.7.1.custom.js"></
script>
<script type="text/javascript">
$(document).ready(function() {
$("#pages").sortable({
items: $('.sortlist'),
update : function () {
var order = $('#pages').sortable('serialize');
alert(order);
}
});
});
</script>
</head>
<body>
<div id="pages">
<div class='sortlist' id="page_1">Item 1</div>
<div class='sortlist' id="page_2">Item 2</div>
<div class='sortlist' id="page_3">Item 3</div>
<div class='sortlist' id="page_4">Item 4</div>
</div>
</body>
</html>