提交 1e1c7afe 编写于 作者: C Carlos Antonio da Silva

Merge pull request #8737 from tricknotes/info-page-style

Fix info page style [ci skip]
......@@ -3,7 +3,7 @@
class Rails::InfoController < ActionController::Base # :nodoc:
self.view_paths = File.expand_path('../templates', __FILE__)
prepend_view_path ActionDispatch::DebugExceptions::RESCUES_TEMPLATE_PATH
layout 'application'
layout -> { request.xhr? ? nil : 'application' }
before_filter :require_local!
......
......@@ -174,8 +174,9 @@
<script>
function about() {
var info = document.getElementById('about-content'),
xhr = new XMLHttpRequest();
xhr.open("GET","rails/info/properties",false);
xhr = new XMLHttpRequest();
xhr.open("GET", "rails/info/properties", false);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.send("");
info.innerHTML = xhr.responseText;
info.style.display = 'block'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册