Browse files

Update trunk to script.aculo.us 1.8.0.1, fixes a regression in the au…

…tocompleter

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 112ed30 commit cfa31c30b84d9ecd6423ab7341df6eb646bcc508 @madrobby madrobby committed Dec 4, 2007
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Update script.aculo.us to 1.8.0.1. [madrobby]
+
* Add 'disabled' attribute to <OPTION> separators used in time zone and country selects. Closes #10354 [hasmanyjosh]
* Added the same record identification guessing rules to fields_for as form_for has [DHH]
View
6 actionpack/lib/action_view/helpers/javascripts/controls.js
@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({
Element.hide(this.update);
Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
- Event.observe(this.element, 'keypress', this.onKeyPress.bindAsEventListener(this));
+ Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
},
show: function() {
@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({
case Event.KEY_UP:
this.markPrevious();
this.render();
- if(Prototype.Browser.WebKit) Event.stop(event);
+ Event.stop(event);
return;
case Event.KEY_DOWN:
this.markNext();
this.render();
- if(Prototype.Browser.WebKit) Event.stop(event);
+ Event.stop(event);
return;
}
else
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Update script.aculo.us to 1.8.0.1. [madrobby]
+
* Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned #10332 [jbarnette]
* Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 [jbarnette]
View
6 railties/html/javascripts/controls.js
@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({
Element.hide(this.update);
Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
- Event.observe(this.element, 'keypress', this.onKeyPress.bindAsEventListener(this));
+ Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
},
show: function() {
@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({
case Event.KEY_UP:
this.markPrevious();
this.render();
- if(Prototype.Browser.WebKit) Event.stop(event);
+ Event.stop(event);
return;
case Event.KEY_DOWN:
this.markNext();
this.render();
- if(Prototype.Browser.WebKit) Event.stop(event);
+ Event.stop(event);
return;
}
else

0 comments on commit cfa31c3

Please sign in to comment.