I've added this to the rails trunk, but slightly altered the proposed
patch, (see the comment on #3691).
Here's the changeset:
http://dev.rubyonrails.org/changeset/4131
-Thomas
Am 02.04.2006 um 15:19 schrieb Bob Silva:
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: rails-spinoffs@lists.rubyonrails.org
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
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs