diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index ff105997c5..d71e878876 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -58,9 +58,10 @@ Try = { } Toggle = { - visibility: function() { - for (i = 0; i < arguments.length; i++) { - var element = $(arguments[i]); + display: function() { + elements = $.apply(this, arguments); + for (var i = 0; i < elements.length; i++) { + element = elements[i]; element.style.display = (element.style.display == 'none' ? '' : 'none'); } |