1.3D机房右侧弹框修复
2.菜单栏高亮提示
This commit is contained in:
@@ -220,7 +220,7 @@ $(function(){
|
||||
var name=$("alarm_level",this).text();//alert("pass:name"+name);
|
||||
var urlStr=$("url",this).text();//alert("pass:urlStr"+urlStr);
|
||||
var count=$("count",this).text(); //alert("count:"+count);
|
||||
var msgList="<a target='I3' title='"+name+"("+count+")"+"' href='"+urlStr+"' ><li style='margin-left: 5px;'>"+name+"<font color='red'>("+count+")</font></a>";
|
||||
var msgList="<a onclick='warnLink(this)' target='I3' title='"+name+"("+count+")"+"' href='"+urlStr+"' ><li style='margin-left: 5px;'>"+name+"<font color='red'>("+count+")</font></a>";
|
||||
$("#msgTable").append("<tr><td>"+msgList+"<td></tr>");
|
||||
})
|
||||
}
|
||||
@@ -378,6 +378,39 @@ $(function(){
|
||||
objA.attr("href",val+"&addr="+url);
|
||||
});
|
||||
|
||||
var a_warn;
|
||||
|
||||
$(function(){
|
||||
$("li > a").click(function(){
|
||||
var a_href=$(this).prop("href");
|
||||
if(a_href != "javascript:;"){
|
||||
$("li > a").removeProp("style");
|
||||
$(this).prop("style","background-color:#F3F3F8;");
|
||||
if(a_warn!=null&&a_warn!=undefined){
|
||||
$(a_warn).removeProp("style");
|
||||
var text=$(a_warn).children("font").first().html();
|
||||
$(a_warn).html(text);
|
||||
a_warn=null;
|
||||
console.log(text);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function warnLink(obj){
|
||||
|
||||
a_warn=obj;
|
||||
$("li > a").removeProp("style");
|
||||
var text=$(obj).html();
|
||||
$(obj).html("<font color='black'>"+text+"</font>");
|
||||
$(obj).prop("style","background-color:#F3F3F8;");
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
@@ -450,7 +483,7 @@ html, body {
|
||||
<li><a href="<c:url value='/login!systemSelect.do?SytemChange=yes'/>">i18n_main.text.systemSelect_n81i |</a></li>
|
||||
<%-- <li><a href="<c:url value='/main.jsp?i18n_lang=zh_CN'/>">简体中文 |</a></li>
|
||||
<li><a href="<c:url value='/main.jsp?i18n_lang=en_US'/>">ENGLISH |</a></li> --%>
|
||||
<li>
|
||||
<li <%=!"ALL".equals(systemname)?"style='display:none'":"" %>>
|
||||
<!-- <a href="<c:url value="/authentication/identificat.do?action=toTargetSys"/>">To Grafana |</a> -->
|
||||
<a href="<c:url value='/authentication/identificat.do?action=toTargetSys'/>" id="toTarget" target='_blank'>To Grafana |<a/>
|
||||
</li>
|
||||
|
||||
@@ -204,6 +204,12 @@ body {
|
||||
}else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
|
||||
var e = event ? event : window.event;
|
||||
x = e.clientX;
|
||||
y = e.clientY;
|
||||
style.left = x + window.document.body.scrollLeft-200 ;
|
||||
style.top = y + window.document.body.scrollTop-50;
|
||||
}else if(navigator.userAgent.indexOf("Chrome")>0){
|
||||
var e = event ? event : window.event;
|
||||
x = e.clientX;
|
||||
y = e.clientY;
|
||||
style.left = x + window.document.body.scrollLeft-200 ;
|
||||
style.top = y + window.document.body.scrollTop-50;
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
type="text/css"></link>
|
||||
<script type="text/javascript"
|
||||
src="<c:url value='/js/jquery-easyui-1.1.2/jquery.easyui.min.js' />"></script>
|
||||
<script type="text/javascript"
|
||||
src="<c:url value='/js/jquery-easyui-1.1.2/layer.js' />"></script>
|
||||
<style>
|
||||
body {
|
||||
background-image: url("${pageContext.request.contextPath}/images/show/bg.jpg");
|
||||
@@ -224,7 +226,7 @@ body {
|
||||
if(textStatus == "success" && (data!= null && data!= "" )){
|
||||
$("#nodeBoxs").html("");
|
||||
var t =$("#nodeBox").dialog("options").title;
|
||||
$("#nodeBox").dialog("setTitle", params[1]);
|
||||
$("#nodeBox").dialog("setTitle", params[1]);
|
||||
$("#nodeBox").dialog("open");
|
||||
|
||||
var length = $(data).length;
|
||||
|
||||
Reference in New Issue
Block a user