I am attempting to remove an element in the :afterFinish callback of the
"Squish" effect. This is what my call looks like.
<%= link_to_remote ("X",
:url => { :action => "deleteIt",
:id => wc_line.attributes[''id''],
:exercise_id =>
wc_line.attributes[''exercise_id''] },
:complete => visual_effect(:squish,
"item_#{wc_line.attributes[''id''].to_s}", {
:afterFinish =>
"function(effect) { Element.Destroy(effect.element);
Sortable.create(''#{dow}eList'',
#{options_for_javascript(sortable_options)}) }" }) )
%>
After I click the above link the squish effect hides the element
properly, but when I reorder my list and go to update each element''s
position, the element ID still exists within the list (showing that the
item was hidden, but that my Element.Destroy in my afterfinish callback
was never called).
Can anyone point out any flaws with the above call?
TIA.
Jim
--
Posted via http://www.ruby-forum.com/.