diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 18:18:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 18:18:55 +0000 |
commit | 668a0817f71fb586798243f300a75f3f6ac0aeb3 (patch) | |
tree | 68afce16a8d40d5a3bee32c8338ac361b1d601fb /actionpack | |
parent | 177ed3e6816bb655a0aca6a99df5a456efd96e10 (diff) | |
download | rails-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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/controls.js | 2 |
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)); }, |