If you create your sortable and set it to a variable:
myVar = Sortable.create(...);
then you can remove the sort capability later by calling its destroy
() method:
myVar.destroy();
All this does is remove the sortable behavior from the element, not
destroy the element itself.
Walter
http://wiki.script.aculo.us/scriptaculous/show/Sortable.destroy
On Mar 12, 2008, at 2:06 PM, danybarco wrote:
>
> How can I deactivate and activate any div what it is an sortable
> element?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---