Mark Studebaker wrote:> Hi...
> 
> I don''t know what I''m doing wrong but I can''t
seem to get this code to
> work:
> 
> page[:invite].replace_html @message
> page[:invite].visual_effect(:Highlight)
> 
> Any help would be great.
> 
> - Mark
I got same problem.
So I tried to change effect.js,
you can find keyword ''visualEffect'', and change like below.
  visualEffect: function(element, effect, options) {
    element = $(element)
    if (effect.startsWith(''toggle_'')) {
      var s = effect.gsub(/toggle_/, '''')
      Effect.toggle(element, s);
    } else {
      var s = effect.dasherize().camelize(), klass = 
s.charAt(0).toUpperCase() + s.substring(1);
      new Effect[klass](element, options);
    }
    return element;
  },
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---