Raymond Brigleb
2005-Jul-11 19:51 UTC
[Rails-spinoffs] Using sortable_element properly with DIV tag
Hello, I''m trying to use sortable_element to allow users to AJAXishly reorder a page of images. These are arranged in a grid format, not a vertical list, so I''m using Rails code like this to make it happen: <%= sortable_element ''thumbholder'', :tag => ''div'', :complete => visual_effect(:highlight, ''thumbholder''), :url => { :action => "order" } %> Works great, only problem is that it is restricting the drags to vertical motion, which doesn''t make sense for this application. Is there some switch I need to throw to remove the vertical restriction? Thanks, Raymond