diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/html/javascripts/prototype.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index ff105997c5..d71e878876 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/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'); } |