I lobbied to get this included in 1.1. Not sure why it wasn't accepted.

Bob Silva
http://www.railtie.net/

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Alain Ravet
> Sent: Sunday, April 02, 2006 3:12 AM
> To: [email protected]
> Subject: [Rails-spinoffs] (SOLVED) Re: autocompletion:
> hooking'afterUpdateElement' in Rails
> 
> There's already a tiny patch in the waiting list that solves that very
> problem:
> 
>     http://dev.rubyonrails.org/ticket/3691
>     [PATCH] Add frequency and afterupdateelement option to
> text_field_with_auto_complete
> 
> It justs adds 2 lines in the _auto_complete_field_ method
> (java_script_macros_helper.rb)
>          js_options[:frequency]  = "#{options[:frequency]}" if
> options[:frequency]
>          js_options[:afterUpdateElement] = "function(element,value) {
> return #{options[:after_update_element]}(element,value); }"  if
> options[:after_update_element]
> 
> 
> 
> Alain
> 
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to