Forum: Ruby on Rails :afterFinish not getting called?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
66c680f88e8c379fe408d32299dfb4e6?d=identicon&s=25 Jim Jones (aantix)
on 2006-01-17 10:32
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
This topic is locked and can not be replied to.