From 26f43ce6f463c1c02a608eefffbd2d90bde574f3 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 28 Jul 2011 08:29:08 +0000 Subject: [PATCH] change css class name for all monitor page git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/css/style.css | 14 +++++++------- xCAT-UI/js/monitor/rmcmon.js | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/xCAT-UI/css/style.css b/xCAT-UI/css/style.css index f40a28c39..9cd1e506f 100644 --- a/xCAT-UI/css/style.css +++ b/xCAT-UI/css/style.css @@ -683,42 +683,42 @@ table a:hover { } /*--------------- Provision and monitor forms ---------------*/ -.rmcnormal { +.monitornormal { border: 2px outset #7FFFD4; background: #66CD00; cursor: pointer; } -.rmcwarning { +.mornitorwarning { background: #FFD700; border: 2px outset #EEEE00; cursor: pointer; } -.rmcerror { +.monitorerror { background: #FF3030; border: 2px outset #FF4040; } -.rmcunknown { +.monitorunknown { background: #8B8B7A; border: 2px outset #858585; } -.rmcnodeli { +.monitornodeli { width: 16px; height: 16px; float: left; } -.rmcsumdiv { +.monitorsumdiv { width: 300px; height: 150px; float: left; margin: 0px 0px 10px 0px; } -.rmcnodediv { +.monitornodediv { width: 240px; height: 120px; margin: 0px 0px 15px 0px; diff --git a/xCAT-UI/js/monitor/rmcmon.js b/xCAT-UI/js/monitor/rmcmon.js index 094394dbd..f3638e98b 100644 --- a/xCAT-UI/js/monitor/rmcmon.js +++ b/xCAT-UI/js/monitor/rmcmon.js @@ -277,7 +277,7 @@ function showRmcSummary(returnData) { summaryTable.append(summaryRow); } summaryRow.append(tempTd); - attrDiv = $('
'); + attrDiv = $('
'); tempTd.append(attrDiv); for ( var i in attrValues) { tempArray.push( [ globalTimeStamp[i], Number(attrValues[i]) ]); @@ -352,13 +352,13 @@ function parseRmcData(returnData){ } function createUnkownNode(nodeName){ - var tempLi = '
  • '; return tempLi; } function createErrorNode(nodeName){ - var tempLi = '
  • '; } @@ -407,13 +407,13 @@ function showRmcNodes(data, nodename) { memAvg = parseInt(tempSum / index); if (cpuAvg >= 10 && memAvg <= 90){ - classname = 'rmcnormal'; + classname = 'monitornormal'; } else{ - classname = 'rmcwarning'; + classname = 'mornitorwarning'; } - var normalLi = $('
  • '); $('#rmcmonDetail ul').append(normalLi); @@ -446,7 +446,7 @@ function showNode(nodeName) { for ( var attr in globalNodesDetail[nodeName]) { var tempTd = $(''); var attrChat = $('
    '); + + '" class="monitornodediv">'); if (0 == parseNum % 4) { nodeRow = $(''); nodeTable.append(nodeRow);