Merge branch 'master' of http://git.yoho.cn/ops/monitor-ui
Showing
1 changed file
with
5 additions
and
4 deletions
@@ -49,9 +49,9 @@ | @@ -49,9 +49,9 @@ | ||
49 | <div id="sidebar"> | 49 | <div id="sidebar"> |
50 | <ul> | 50 | <ul> |
51 | <li class=""><a href="#"><i class="icon icon-home"></i> <span>Dashboard</span></a></li> | 51 | <li class=""><a href="#"><i class="icon icon-home"></i> <span>Dashboard</span></a></li> |
52 | - <li class="active" onclick="clickMenuToPage('/jsp/table.jsp')"><a href="#" ><i class="icon icon-th"></i> <span>Tables</span></a></li> | ||
53 | - <li><a href="#" onclick="clickMenuToPage('jsp/host/hostGroupList.jsp')"><i class="icon icon-th"></i> <span>主机组</span></a></li> | ||
54 | - <li><a href="#" onclick="clickMenuToPage('jsp/host/hostInfoList.jsp')"><i class="icon icon-th"></i> <span>主机信息</span></a></li> | 52 | + <li class="" id="jsptablejsp" onclick="clickMenuToPage('/jsp/table.jsp')"><a href="#" ><i class="icon icon-th"></i> <span>Tables</span></a></li> |
53 | + <li class="" id="jsphosthostGroupListjsp" onclick="clickMenuToPage('jsp/host/hostGroupList.jsp')" ><a href="#" ><i class="icon icon-th"></i> <span>主机组</span></a></li> | ||
54 | + <li class="" id="jsphosthostInfoListjsp" onclick="clickMenuToPage('jsp/host/hostInfoList.jsp')" ><a href="#" ><i class="icon icon-th"></i> <span>主机信息</span></a></li> | ||
55 | 55 | ||
56 | 56 | ||
57 | </ul> | 57 | </ul> |
@@ -63,7 +63,8 @@ | @@ -63,7 +63,8 @@ | ||
63 | 63 | ||
64 | <script type="text/javascript"> | 64 | <script type="text/javascript"> |
65 | function clickMenuToPage(page){ | 65 | function clickMenuToPage(page){ |
66 | - // $(this).addClass("active"); | 66 | + var g = page.replace(/\//g,"").replace(".",""); |
67 | + $("#"+g).addClass("active").siblings().removeClass("active"); | ||
67 | //加载左侧内容 | 68 | //加载左侧内容 |
68 | $("#content").load(contextPath+page); | 69 | $("#content").load(contextPath+page); |
69 | } | 70 | } |
-
Please register or login to post a comment