diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/templates/rails/welcome/index.html.erb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/lib/rails/templates/rails/welcome/index.html.erb b/railties/lib/rails/templates/rails/welcome/index.html.erb index b102561848..4dee366a76 100644 --- a/railties/lib/rails/templates/rails/welcome/index.html.erb +++ b/railties/lib/rails/templates/rails/welcome/index.html.erb @@ -173,12 +173,8 @@ </style> <script> function about() { - var info = document.getElementById('about-content'); - var xhr; - if (window.XMLHttpRequest) - { xhr = new XMLHttpRequest(); } - else - { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } + var info = document.getElementById('about-content'), + xhr = new XMLHttpRequest(); xhr.open("GET","rails/info/properties",false); xhr.send(""); info.innerHTML = xhr.responseText; |