Displaying 1 result from an estimated 1 matches for "receive_drop".
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
...t;
and a droppable:
<%= drop_receiving_element(@team_div_id, :with => "''player='' +
(element.id)+ ''&position='' + #{draft_position}" ,:complete =>
visual_effect(:highlight), :update=>"status" , :url => { :action =>
"receive_drop"}, :hoverclass => ''hover'' ) %>
<% end %>
I would like to allow the draggable to "snap" to a droppable position if
close or revert back to its original position if it isnt near a
droppable.
I have searched over the net but I have been unsuccessful with...