Gregory Hill
2006-Feb-10 15:25 UTC
RE: sorting <a href..> with D&D follows the link(browser thinks I click)
Maybe don''t make anchor tags draggable? Or you could do something like change the href to point to ''#'' and move the actual href into your javascript, and only call it if they click without dragging. Still, I think making a clickable item draggable is begging for problems.> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Alain Ravet > Sent: Thursday, February 09, 2006 5:12 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] sorting <a href..> with D&D follows the > link(browser thinks I click) > > Hi all, > > I''ve just added d&d sorting to a list where each item is a link_to .. > Problem: when I drop an item to its new location, the browser think I > clicked, and follows the link. > Any idea? > > > TIA. > > Alain > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Alain Ravet
2006-Feb-10 16:14 UTC
Re: sorting <a href..> with D&D follows the link(browser thinks I click)
Gregory > I think making a clickable item draggable is begging for problems. No, it''s just striving for simplicity and obviousness. With "In place edit" and "sortable list", you can replace 3 pages by 1, without adding any control or icon or whatever on the page. What''s the alternative: separate pages : "Sort contents", and "Edit contents". That''s no good. Alain