slideaway
2007-Jun-13 00:17 UTC
draggable lists does not work if one list is or becomes empty
hi all i cant get draggable lists to work once a list becomes empty can anyone help? here is my code to make the lists draggable, ive experimented with css to see if that helps but as yet no success :-( <%= sortable_element ''grocery-list'', :url => { :action => "sort", :id => @grocery_list }, :complete => visual_effect(:highlight, ''grocery-list''), :containment => ["grocery-list", "grocery-list-2"], :constraint => false %> <%= sortable_element ''grocery-list-2'', :url => { :action => "sort", :id => @grocery_list }, :complete => visual_effect(:highlight, ''grocery-list''), :containment => ["grocery-list-2", "grocery-list"], :constraint => false %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Jun-13 00:18 UTC
Re: draggable lists does not work if one list is or becomes empty
:onEmptyHover => true Possibly.. Gareth On 6/13/07, slideaway <mcyi2mr3-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > hi all i cant get draggable lists to work once a list becomes empty > can anyone help? here is my code to make the lists draggable, ive > experimented with css to see if that helps but as yet no success :-( > > <%= sortable_element ''grocery-list'', > > :url => { :action => "sort", :id => @grocery_list }, > :complete => visual_effect(:highlight, ''grocery-list''), > :containment => ["grocery-list", "grocery-list-2"], > :constraint => false > %> > > <%= sortable_element ''grocery-list-2'', > > :url => { :action => "sort", :id => @grocery_list }, > :complete => visual_effect(:highlight, ''grocery-list''), > :containment => ["grocery-list-2", "grocery-list"], > :constraint => false > %> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
slideaway
2007-Jun-13 00:22 UTC
Re: draggable lists does not work if one list is or becomes empty
still broke :-( On 13 Jun, 01:18, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> :onEmptyHover => true > > Possibly.. > > Gareth > > On 6/13/07, slideaway <mcyi2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > hi all i cant get draggable lists to work once a list becomes empty > > can anyone help? here is my code to make the lists draggable, ive > > experimented with css to see if that helps but as yet no success :-( > > > <%= sortable_element ''grocery-list'', > > > :url => { :action => "sort", :id => @grocery_list }, > > :complete => visual_effect(:highlight, ''grocery-list''), > > :containment => ["grocery-list", "grocery-list-2"], > > :constraint => false > > %> > > > <%= sortable_element ''grocery-list-2'', > > > :url => { :action => "sort", :id => @grocery_list }, > > :complete => visual_effect(:highlight, ''grocery-list''), > > :containment => ["grocery-list-2", "grocery-list"], > > :constraint => false > > %>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Jun-13 00:24 UTC
Re: draggable lists does not work if one list is or becomes empty
err sorry, if you are reading my other thread i''ve been typing onEmptyHover a lot should be dropOnEmpty => true Gareth On 6/13/07, slideaway <mcyi2mr3-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > still broke :-( > > On 13 Jun, 01:18, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > :onEmptyHover => true > > > > Possibly.. > > > > Gareth > > > > On 6/13/07, slideaway <mcyi2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > > > hi all i cant get draggable lists to work once a list becomes empty > > > can anyone help? here is my code to make the lists draggable, ive > > > experimented with css to see if that helps but as yet no success :-( > > > > > <%= sortable_element ''grocery-list'', > > > > > :url => { :action => "sort", :id => @grocery_list }, > > > :complete => visual_effect(:highlight, ''grocery-list''), > > > :containment => ["grocery-list", > "grocery-list-2"], > > > :constraint => false > > > %> > > > > > <%= sortable_element ''grocery-list-2'', > > > > > :url => { :action => "sort", :id => @grocery_list }, > > > :complete => visual_effect(:highlight, ''grocery-list''), > > > :containment => ["grocery-list-2", > "grocery-list"], > > > :constraint => false > > > %> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---