diff --git a/xCAT-UI/css/style.css b/xCAT-UI/css/style.css index 0ea1605e3..8a94dfa7f 100644 --- a/xCAT-UI/css/style.css +++ b/xCAT-UI/css/style.css @@ -608,6 +608,47 @@ table a:hover { } /*--------------- Provision and monitor forms ---------------*/ +.rmcnormal { + border: 2px outset #7FFFD4; + background: #66CD00; + cursor: pointer; +} + +.rmcwarning { + background: #FFD700; + border: 2px outset #EEEE00; + cursor: pointer; +} + +.rmcerror { + background: #FF3030; + border: 2px outset #FF4040; +} + +.rmcunknown { + background: #8B8B7A; + border: 2px outset #858585; +} + +.rmcnodeli { + width: 16px; + height: 16px; + float: left; +} + +.rmcsumdiv { + width: 300px; + height: 150px; + float: left; + margin: 0px 0px 10px 0px; +} + +.rmcnodediv { + width: 240px; + height: 120px; + margin: 0px 0px 15px 0px; +} + .provision div,.monitor div { margin: 10px 0; display: block; @@ -622,19 +663,6 @@ table a:hover { height: 150px; } -.monitorsumdiv { - width: 300px; - height: 150px; - float: left; - margin: 0px 0px 10px 0px; -} - -.monitornodediv { - width: 240px; - height: 120px; - margin: 0px 0px 15px 0px; -} - /*--------------- Physical layout section ---------------*/ .frameDiv { width: 179px; diff --git a/xCAT-UI/js/monitor/rmcmon.js b/xCAT-UI/js/monitor/rmcmon.js index 1e721b28c..5ca1fb661 100644 --- a/xCAT-UI/js/monitor/rmcmon.js +++ b/xCAT-UI/js/monitor/rmcmon.js @@ -1,63 +1,61 @@ -var globalErrNodes; -var globalNodesDetail; +var globalNodesDetail= new Object(); var globalAllNodesNum = 0; var globalFinishNodesNum = 0; -var globalSelectedAttributes = ''; var globalTimeStamp; var globalCondition = ''; var globalResponse = new Object(); -function loadRmcMon(){ - //find the rmcmon tab - var rmcMonTab = $('#rmcmon'); - - //add the stauts bar first. id = 'rmcMonStatus' - var rmcStatusBar = createStatusBar('rmcMonStatus'); - rmcStatusBar.find('div').append(createLoader()); - rmcMonTab.append(rmcStatusBar); - - //add the configure button. - var configButton = createButton('Configure'); - configButton.hide(); - configButton.click(function(){ - if ($('#rmcMonConfig').is(':hidden')){ - $('#rmcMonConfig').show(); - } - else{ - $('#rmcMonConfig').hide(); - } - }); - rmcMonTab.append(configButton); - - //add configure div - rmcMonTab.append("
"); - $('#rmcMonConfig').hide(); - - //load the configure div's content - loadRmcMonConfigure(); - - //add the content of the rmcmon, id = 'rmcMonTab' - rmcMonTab.append("Condition Name | Response Name |
---|---|
'; - //add the conditions into fieldset + // add the conditions into fieldset if ('' == globalCondition){ mkAssociationTable += 'Getting predefined conditions, open this dislogue later.'; } @@ -825,7 +687,7 @@ function mkCondRespDia(){ mkAssociationTable += ' | Plase select condition first. |