diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-26 17:23:38 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-26 17:23:38 +0000 |
commit | c9f2389c010ba9364a4454b45b3cedd4dd273c38 (patch) | |
tree | 1c3c83f051dbef3f3024e2e42dc31b22bd12f23a /actionpack/lib/action_view/helpers/javascripts/controls.js | |
parent | 930b59eb39e2078ae83159d72dee9389ecc04897 (diff) | |
download | rails-c9f2389c010ba9364a4454b45b3cedd4dd273c38.tar.gz rails-c9f2389c010ba9364a4454b45b3cedd4dd273c38.tar.bz2 rails-c9f2389c010ba9364a4454b45b3cedd4dd273c38.zip |
Update script.aculo.us scripts to fix some bugs #1515
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1528 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascripts/controls.js')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/controls.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/controls.js b/actionpack/lib/action_view/helpers/javascripts/controls.js index 94d438a784..4da9b52bc7 100644 --- a/actionpack/lib/action_view/helpers/javascripts/controls.js +++ b/actionpack/lib/action_view/helpers/javascripts/controls.js @@ -93,6 +93,7 @@ Ajax.Autocompleter.prototype = (new Ajax.Base()).extend({ onComplete: function(request) { if(!this.changed) { this.update.innerHTML = request.responseText; + Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entry_count = @@ -131,10 +132,12 @@ Ajax.Autocompleter.prototype = (new Ajax.Base()).extend({ case Event.KEY_UP: this.mark_previous(); this.render(); + if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event); return; case Event.KEY_DOWN: this.mark_next(); this.render(); + if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event); return; } else |