H. Wade Minter
2007-May-16 17:29 UTC
Customizing the Ok/Cancel buttons for in_place_editor
Is there an easy way to get the in_place_editor to use image-based submit and cancel buttons? Or does that involve hacking the javascript directly? --Wade --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bob Showalter
2007-May-16 17:59 UTC
Re: Customizing the Ok/Cancel buttons for in_place_editor
On 5/16/07, H. Wade Minter <minter-VaDJcK/n3l4h9ZMKESR00Q@public.gmane.org> wrote:> > Is there an easy way to get the in_place_editor to use image-based > submit and cancel buttons? Or does that involve hacking the > javascript directly?You can pass options to change the text of the submit button and cancel link, but to use image buttons I think you would need to hack the javascript. You''d be overriding the Ajax.InPlaceEditor.createForm() method. If you look towards the bottom of http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor, you''ll see some approaches to customizing the JS without directly hacking the scriptaculous files. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---