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