Displaying 1 result from an estimated 1 matches for "draft_posit".
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
...th Scriptaculous
Drag and Drop:
So I have
<%= draggable_element(@div_id, :revert => "failure", :snap => 5) -%>
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...