diff options
author | Thomas Fuchs <thomas@fesch.at> | 2006-03-26 20:28:05 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2006-03-26 20:28:05 +0000 |
commit | 77c8e3a0fd32e736575edce503b2e9f891193f9e (patch) | |
tree | b929bdb99ca8c59f7ea0546c1bbaa473460f38a3 /railties | |
parent | 666537572d689c81eef7590f7ff3a146f3a82b29 (diff) | |
download | rails-77c8e3a0fd32e736575edce503b2e9f891193f9e.tar.gz rails-77c8e3a0fd32e736575edce503b2e9f891193f9e.tar.bz2 rails-77c8e3a0fd32e736575edce503b2e9f891193f9e.zip |
effects.js and controls.js fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/html/javascripts/controls.js | 4 | ||||
-rw-r--r-- | railties/html/javascripts/effects.js | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/railties/html/javascripts/controls.js b/railties/html/javascripts/controls.js index 82857c44e0..de0261ed54 100644 --- a/railties/html/javascripts/controls.js +++ b/railties/html/javascripts/controls.js @@ -141,8 +141,8 @@ Autocompleter.Base.prototype = { return; } else - if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN) - return; + if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || + (navigator.appVersion.indexOf('AppleWebKit') > 0 && event.keyCode == 0)) return; this.changed = true; this.hasFocus = true; diff --git a/railties/html/javascripts/effects.js b/railties/html/javascripts/effects.js index 91f551e2bf..e23554ecad 100644 --- a/railties/html/javascripts/effects.js +++ b/railties/html/javascripts/effects.js @@ -581,7 +581,8 @@ Effect.Puff = function(element) { beforeSetupInternal: function(effect) { effect.effects[0].element.setStyle({position: 'absolute'}); }, afterFinishInternal: function(effect) { - effect.effects[0].element.hide().setStyle(oldStyle); } + effect.effects[0].element.hide(); + effect.effects[0].element.setStyle(oldStyle); } }, arguments[1] || {}) ); } @@ -640,7 +641,7 @@ Effect.SwitchOff = function(element) { afterFinishInternal: function(effect) { effect.element.hide(); effect.element.undoClipping(); - effect.element.undoPositionend(); + effect.element.undoPositioned(); effect.element.setStyle({opacity: oldOpacity}); } }) |