AFAIK revert is only valid before the drop AFAIK. But just add:
:before => "Element.hide(element)"
to your <%= drop_receiving_element ... %>
and you drag element disappears ..
On 1/8/06, Michael Peters
<mpeters-aUYv5hkjw45l57MIdRCFDg@public.gmane.org>
wrote:>
> I have a container ''A'' which contains Draggables and a
Droppable ''Trash''.
> These
> Draggables are set with ''revert:true''. Now, if a
Draggable from ''A'' is
> dropped
> in the Trash, I don''t want it to revert, I want it to just
disappear.
>
> I''ve tried using draggable.destroy() but this just prevents it
from being
> dragged again, but doesn''t prevent the revert.
>
> Can this be done?
>
> --
> Michael Peters
> Developer
> Plus Three, LP
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
--
Roberto Saccon - http://rsaccon.com
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs