diff --git a/xCAT-UI/js/monitor/rmcmon.js b/xCAT-UI/js/monitor/rmcmon.js index fe6ca6b20..eccf64a06 100644 --- a/xCAT-UI/js/monitor/rmcmon.js +++ b/xCAT-UI/js/monitor/rmcmon.js @@ -226,6 +226,16 @@ function loadRmcMonShow(){ showRmcSummary(data.rsp[0]); } }); +} + +function showRmcSummary(returnData){ + var attributes = returnData.split(';'); + var attr; + var attrName; + var attrValues; + var attrDiv; + var summaryTable = $('
'); + var summaryRow; //load each nodes' status $.ajax({ @@ -242,18 +252,8 @@ function loadRmcMonShow(){ parseRmcData(data.rsp); } }); -} - -function showRmcSummary(returnData){ - var attributes = returnData.split(';'); - var attr; - var attrName; - var attrValues; - var attrDiv; - var summaryTable = $('
'); - var summaryRow; - + //show the summary data $('#rmcmonSummary').empty().append('

Overview


'); $('#rmcmonSummary').append(summaryTable);