ok, i have 3 sortable elements
this is how thier all three set up..
| Sortable.create('blocks1',{
dropOnEmpty:true,
tag:'div',
containment:['blocks1','blocks2','blocks3'],
only:'sortable',
constraint:false,
handle:'handle',
ghosting: false,
onChange: function(e) {
dragging = e.id;
},
onUpdate: function(c){
new Insertion.Bottom('div_sort1', dragging+' dropped
on '+c.id+'<br>');
}
});
now this works great it fills my div_sort1 with all the info that's going on.
but since sortables fires off the on update event for ALL the sortables on the
page i end up getting alot of useless (and server heavy) information
now when i move one draggable from sortable "blocks1" to sortable "blocks2" i
get this
|block_1 dropped on blocks1
block_1 dropped on blocks2
is there a way to make is so that i'd be able to get info like this..
block_1 removed from blocks1
block_1 dropped on blocks2
so that basically the sortable that it take the "block_1" out of will report that
"block_1" has been removed from it, not that it has moved to it
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs