Re: [Rails-spinoffs] question about Sortables

2006-01-25 Thread Dillon Woods
On 1/23/06, Gregory Hill <[EMAIL PROTECTED]> wrote: Looks like Sortable already has an 'onUpdate' option that should doexactly what I want.  However, I cannot get it to fire.  Has anyone hadsuccess with it?  I use onUpdate with my sortables, and it does indeed do what you are looking for.  For a

RE: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Gregory Hill
Looks like Sortable already has an 'onUpdate' option that should do exactly what I want. However, I cannot get it to fire. Has anyone had success with it? Passing the onDrop option along to Droppables didn't work, either. It seems that onDrop is not consistently called because the 'last_active'

Re: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Benjamin Mack
Thanks, man! I appreciate your effort a lot! greetings, benni. -SDG- Gregory Hill wrote: Hey Greg, just my two cents: Why don't you extend the classes and then make a patch for Thomas to integrate in the main distribution? Would be awesome to have those small, but needed extensions in there

RE: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Gregory Hill
> Hey Greg, > > just my two cents: Why don't you extend the classes and then make a > patch for Thomas to integrate in the main distribution? > > Would be awesome to have those small, but needed extensions in there... > Yeah, I can do that; the main problem is that I don't have svn access from

Re: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Benjamin Mack
Hey Greg, just my two cents: Why don't you extend the classes and then make a patch for Thomas to integrate in the main distribution? Would be awesome to have those small, but needed extensions in there... greetings, benni. -SDG- Gregory Hill wrote: These blocks in the Sortable class need

RE: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Ryan Gahl
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Monday, January 23, 2006 4:35 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] question about Sortables > These blocks in the Sortable class need to be extended to provide the > level of configurability

RE: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Gregory Hill
> These blocks in the Sortable class need to be extended to provide the > level of configurability you're looking for: > > // build options for the draggables > var options_for_draggable = { > revert: true, > ghosting:options.ghosting, > constraint: options.constrai

RE: [Rails-spinoffs] question about Sortables

2006-01-23 Thread Ryan Gahl
Empty } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Monday, January 23, 2006 4:23 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] question about Sortables So, is there any way to specify a sortable to only

[Rails-spinoffs] question about Sortables

2006-01-23 Thread Gregory Hill
So, is there any way to specify a sortable to only do a callback when the dragged item is dropped? As it is, the onChange is called whenever you move the draggable to a new element (even if you don't drop it), but I'd rather only call my function after they drop it to avoid unnecessary additional