====== Sortables ======
Here is the [[http://docs.mootools.net/Plugins/Sortables|documentation for Sortables.js]].
//Sortables// is another one of those deceptively simple MooTools widgets. It's pretty easy to make something sortable, but to be of any use you have to do something with the new state (like ping a back end server via ajax). It's not the most complex thing to do, but to do it will requires a bit of careful thought and good design principals. I'm not going to spend a lot of time showing you how to do sortables //well//, but rather just demonstrate the code here in its simplest state.
Here's the html:
var mySort = new Sortables($('SortableExample'), {
clone: true,
opacity: 0.6,
onComplete: function(){
console.log(mySort.serialize())
}
});
var mySort = new Sortables($$('ul.multisort'), {
clone: true,
opacity: 0.6,
onComplete: function(){
console.log(mySort.serialize())
}
});