diff options
author | Sam Stephenson <sam@37signals.com> | 2005-10-10 19:09:40 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-10-10 19:09:40 +0000 |
commit | e3655ef733f7f69a4b1175cd6843f8bfe4c32f5d (patch) | |
tree | da2db6943f3a2bdc2afa62734e26fd42095ec810 /actionpack | |
parent | d736568f41262755dc80f81b2f73d8254925e414 (diff) | |
download | rails-e3655ef733f7f69a4b1175cd6843f8bfe4c32f5d.tar.gz rails-e3655ef733f7f69a4b1175cd6843f8bfe4c32f5d.tar.bz2 rails-e3655ef733f7f69a4b1175cd6843f8bfe4c32f5d.zip |
Fix Element.toggle logic
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index 9f5180315d..ee0cbfce65 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -778,7 +778,7 @@ Object.extend(Element, { toggle: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); - Element[Element.visible(element) ? 'show' : 'hide'](element); + Element[Element.visible(element) ? 'hide' : 'show'](element); } }, |