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
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to