diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-23 00:53:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-23 00:53:46 +0000 |
commit | 546f30fc10d517856616720d240fed03d79ebaa5 (patch) | |
tree | 5dc69eeb0b348a3803934edc52d14ec59ab54c62 | |
parent | 61d236d94133fb7ae2f0dce0badaf2bf07b301b7 (diff) | |
download | rails-546f30fc10d517856616720d240fed03d79ebaa5.tar.gz rails-546f30fc10d517856616720d240fed03d79ebaa5.tar.bz2 rails-546f30fc10d517856616720d240fed03d79ebaa5.zip |
Fixed Toggle.display in prototype.js #902 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 5 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 6978ddafb9..9aca63d0bb 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,3 +1,8 @@ +*SVN* + +* Fixed Toggle.display in prototype.js #902 [Lucas Carlson] + + *1.6.0* (22th March, 2005) * Added a JavascriptHelper and accompanying prototype.js library that opens the world of Ajax to Action Pack with a large array of options for dynamically interacting with an application without reloading the page #884 [Sam Stephenson/David] diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index 5f2f9edb9c..f03a817c60 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -58,8 +58,8 @@ Try = { Toggle = { display: function() { - for (var i = 0; i < elements.length; i++) { - var element = $(elements[i]); + for (var i = 0; i < arguments.length; i++) { + var element = $(arguments[i]); element.style.display = (element.style.display == 'none' ? '' : 'none'); } |