[EMAIL PROTECTED] a écrit :
> This code:
> ['about-bubble','ref-bubble','downloads-bubble','docs-bubble'].each(function(b){
>     new Draggable(b,{revert:true,handle:b+'-handle'});
> 
> });
> 
> Is not mine, this is the source javascript (check the index) I found on
> the script.aculo.us site. I'm hoping to see how this was written in the
> view file.

Oh, OK.  Well, this *wasn't* generated.  This is hand-written.  So you
should, basically, hand-write it too.  For instance, let's say your
images are in a container ID'd "images", and your images use a "item" class:

$('images').getElementsByClassName('item').each(function(img) {
    new Draggable(img, {revert: true});
});

'should do.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to