aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/templates
diff options
context:
space:
mode:
authorFranck Verrot <franck@verrot.fr>2013-01-04 08:32:24 +0100
committerFranck Verrot <franck@verrot.fr>2013-01-04 09:41:39 +0100
commit8ea480b516872eac1ceb07d89bab5caa89b8134d (patch)
treee764f63e83774490440e41283c14b9834bbe27c2 /railties/lib/rails/templates
parenta9511364e0bdf99ae32eddb153f6b1e8f7d73791 (diff)
downloadrails-8ea480b516872eac1ceb07d89bab5caa89b8134d.tar.gz
rails-8ea480b516872eac1ceb07d89bab5caa89b8134d.tar.bz2
rails-8ea480b516872eac1ceb07d89bab5caa89b8134d.zip
Remove the fallback onto `ActiveXObject("Microsoft.XMLHTTP")`.
Diffstat (limited to 'railties/lib/rails/templates')
-rw-r--r--railties/lib/rails/templates/rails/welcome/index.html.erb8
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;