in one of my partials, I was using the following code (made it
short…)
-
<% for work in @works %>
<%= work.title -%>
<%= draggable_element "work_#{work.id}", :revert => true %>
<% end %>
due to an issue with the overflow:scroll + drag/drop , I need to
change the helper for a more complicated script, and I don’t see how
to set the id of the
“work_#{work.id}”
the script is the following : where xxx should be the work.id
btw this script runs well, and help drag an item from a
overflow:scroll container above all other areas…
just need to load
before prototype and scriptaculous…
thanks for any clue …