>
>
>Hello everyone.
>Does anyone know how to deal with this? i try to change the idea of works
revereffect:function but for know unsuccesfull. In my project i have to use
dragable with revert: true but i don''t want have revereffect. Maybe any
idea?
>Grzegorz Ślusarek
>
Hi,
I''m not sure I quite understood your problem. It sounds like you want 
override the default functionality of revert.
You can accomplish this by setting the :reverteffect option. The value 
associated with it is the javascript you want executed on revert.
I suppose you could just try setting it to "return false;". I wanted
to
avoid the draggable flying back to its original position so I used the 
same MoveBy function in the original but set the duration to 0 so the 
user doesn''t see that.
<%= draggable_element(tag.name, 
          :ghosting => true, :revert => true,          
          :change => "function()
            { setClass(''review_tag_names'',
''dropzone'');}",
	  :reverteffect => "function(element, top_offset, left_offset) 
	  { new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0});
	    // set bgcolor back to white--originally set on start drag
	    setClass(''review_tag_names'',
''dropzone_inactive'');
	  }
	") %>
Hope this helps...
Linda :)