How do I get the ID of the sortable that is being dragged?
Here's my code snippet:
columns = ['twothirds_column','onethird_column'];
Sortable.create('twothirds_column', {onUpdate:getPortalOrder,
dropOnEmpty:true,ghosting:false,tag:'div',containment:columns,handle:'handle',only:'drag_panel'});
Sortable.create('onethird_column',
{onUpdate:getPortalOrder2,dropOnEmpty:true,ghosting:false,tag:'div',containment:columns,handle:'handle',only:'drag_panel'});
I've tried passing values to the callback function, but all i get is
the parentID (either twothirds_column or one_thirdcolumn). I need to
get to the id of the draggable (ex. twothirds_column_1).
Anyone know how to do this? I'm lost :(
Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---