aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-02 18:18:55 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-02 18:18:55 +0000
commit668a0817f71fb586798243f300a75f3f6ac0aeb3 (patch)
tree68afce16a8d40d5a3bee32c8338ac361b1d601fb
parent177ed3e6816bb655a0aca6a99df5a456efd96e10 (diff)
downloadrails-668a0817f71fb586798243f300a75f3f6ac0aeb3.tar.gz
rails-668a0817f71fb586798243f300a75f3f6ac0aeb3.tar.bz2
rails-668a0817f71fb586798243f300a75f3f6ac0aeb3.zip
Auto completer should hide update element by when initializing #1579 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1610 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/controls.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/controls.js b/actionpack/lib/action_view/helpers/javascripts/controls.js
index e68820d834..60618838a8 100644
--- a/actionpack/lib/action_view/helpers/javascripts/controls.js
+++ b/actionpack/lib/action_view/helpers/javascripts/controls.js
@@ -76,6 +76,8 @@ Ajax.Autocompleter.prototype = (new Ajax.Base()).extend({
this.observer = null;
+ Element.hide(this.update);
+
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
},