aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/CHANGELOG5
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/prototype.js4
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');
}