Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mySortable = new glow.widgets.Sortable('#mySortable', {
- onSort : function () {
- // this will contain the IDs of the items in the sortable, in order
- var itemIds = [];
- // get the children of the sortable containers - these are the items you drag
- // Then sort them, and get the ID for each
- mySortable.containers.children().sort().each(function () {
- itemIds.push( this.id );
- });
- // itemIds contains an array of all the ids of the list items in order
- }
- });
Add Comment
Please, Sign In to add comment