Resolve #6839, Make Knowledge Base as default

Resolve #6839
bug/bundler_fix
wchen-r7 2016-05-02 14:12:09 -05:00
parent be363411de
commit 71c8ad555e
2 changed files with 19 additions and 8 deletions

View File

@ -23,13 +23,27 @@
document.getElementById('overview_info').style.display = "none"; document.getElementById('overview_info').style.display = "none";
document.getElementById('knowledge_base').style.display = "inline"; document.getElementById('knowledge_base').style.display = "inline";
} }
function initDoc() {
var kb = document.getElementById('knowledge_base');
var oi = document.getElementById('overview_info');
oi.style.display = "none";
kb.style.display = "inline";
var kb_button = document.getElementById('knowledge_base_button');
var oi_button = document.getElementById('overview_info_button');
kb_button.style.borderColor = "#ccc";
kb_button.style.color = "#333";
oi_button.style.borderColor = "#EEEEEE";
oi_button.style.color = "#C4C4C4";
}
</script> </script>
<% end %> <% end %>
<style> <style>
<%= load_css %> <%= load_css %>
</style> </style>
</head> </head>
<body> <body onload="initDoc()">
<% unless kb.empty? %> <% unless kb.empty? %>
<table border="0"> <table border="0">
<tr> <tr>

View File

@ -114,8 +114,8 @@ pre code {
padding:10px 5px; padding:10px 5px;
border-style:solid; border-style:solid;
border-width:1px; border-width:1px;
border-color:#ccc; border-color:#EEEEEE;
color:#333; color:#C4C4C4;
} }
#knowledge_base_button { #knowledge_base_button {
font-family:Arial, sans-serif; font-family:Arial, sans-serif;
@ -123,15 +123,12 @@ pre code {
padding:10px 5px; padding:10px 5px;
border-style:solid; border-style:solid;
border-width:1px; border-width:1px;
border-color:#EEEEEE; border-color:#ccc;
color:#C4C4C4; color:#333;
} }
#overview_info_button:hover, #knowledge_base_button:hover { #overview_info_button:hover, #knowledge_base_button:hover {
cursor: pointer; cursor: pointer;
} }
#knowledge_base {
display: none;
}
#long_list { #long_list {
height:280px; height:280px;
overflow:auto; overflow:auto;