Hi,
I have the following issue :
I have 2 classes of elements which can be dragged/dropped - lineitem and
mandatorylineitem.
I have 2 goups - optional and mandatory. I do not want the mandatory
items to be dragged and dropped into the optional group. I create the
Sortables in the following manner :
Sortable.create(''group_1'',{tag:''div'',dropOnEmpty:
true, containment:
[''group_2''],only:[''mandatorylineitem'',''lineitem'']});
Sortable.create(''group_2'',{tag:''div'',dropOnEmpty:
true, containment:
[''group_1''],only:''lineitem''});
But, to no avail. Could someone help me regarding this. Probably I
havent understood the meaning of the "only" option for
Sortable.create.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---