1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
David Heinemeier Hansson 2005-07-02 18:18:55 +00:00
parent 177ed3e681
commit 668a0817f7

View file

@ -76,6 +76,8 @@ Ajax.Autocompleter.prototype = (new Ajax.Base()).extend({
this.observer = null; this.observer = null;
Element.hide(this.update);
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
}, },