提交 cfa31c30 编写于 作者: T Thomas Fuchs

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

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 112ed303
*SVN* *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] * 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] * Added the same record identification guessing rules to fields_for as form_for has [DHH]
......
...@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({ ...@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({
Element.hide(this.update); 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, 'keydown', this.onKeyPress.bindAsEventListener(this));
}, },
show: function() { show: function() {
...@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({ ...@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({
case Event.KEY_UP: case Event.KEY_UP:
this.markPrevious(); this.markPrevious();
this.render(); this.render();
if(Prototype.Browser.WebKit) Event.stop(event); Event.stop(event);
return; return;
case Event.KEY_DOWN: case Event.KEY_DOWN:
this.markNext(); this.markNext();
this.render(); this.render();
if(Prototype.Browser.WebKit) Event.stop(event); Event.stop(event);
return; return;
} }
else else
......
*SVN* *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] * 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] * Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 [jbarnette]
......
...@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({ ...@@ -86,7 +86,7 @@ Autocompleter.Base = Class.create({
Element.hide(this.update); 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, 'keydown', this.onKeyPress.bindAsEventListener(this));
}, },
show: function() { show: function() {
...@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({ ...@@ -142,12 +142,12 @@ Autocompleter.Base = Class.create({
case Event.KEY_UP: case Event.KEY_UP:
this.markPrevious(); this.markPrevious();
this.render(); this.render();
if(Prototype.Browser.WebKit) Event.stop(event); Event.stop(event);
return; return;
case Event.KEY_DOWN: case Event.KEY_DOWN:
this.markNext(); this.markNext();
this.render(); this.render();
if(Prototype.Browser.WebKit) Event.stop(event); Event.stop(event);
return; return;
} }
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册