From 0f6b950c920eafe422d4323dd1a407d9ad1b84e6 Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 20 Jul 2011 21:13:09 +0000 Subject: [PATCH] - Cleaned up code - Enable editable datatable - Fixed Ganglia monitoring plot git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/css/style.css | 4 +- xCAT-UI/js/configure/discover.js | 15 +- xCAT-UI/js/custom/blade.js | 18 +- xCAT-UI/js/custom/ipmi.js | 4 +- xCAT-UI/js/guide/guide.js | 1 + xCAT-UI/js/monitor/gangliamon.js | 242 +++++++++---------------- xCAT-UI/js/monitor/rmcmon.js | 73 ++++---- xCAT-UI/js/monitor/xcatmon.js | 13 +- xCAT-UI/js/nodes/nodes.js | 301 ++++++++----------------------- xCAT-UI/js/nodes/physical.js | 7 +- xCAT-UI/js/provision/images.js | 211 +++------------------- xCAT-UI/js/ui.js | 13 +- xCAT-UI/js/xcatauth.js | 5 +- 13 files changed, 272 insertions(+), 635 deletions(-) diff --git a/xCAT-UI/css/style.css b/xCAT-UI/css/style.css index fdfa4e283..f40a28c39 100644 --- a/xCAT-UI/css/style.css +++ b/xCAT-UI/css/style.css @@ -192,11 +192,11 @@ body { } #groups .grouplabel { - /*background-color: #A9D0F5;*/ padding: 5px 0px 5px 10px; font-weight: bold; font-size: 15px; } + #groups .groupdiv{ padding-left: 10px; } @@ -452,7 +452,7 @@ legend { /*** Table ***/ .datatable { - width: 660px; + width: 100%; border-width: 1px; border-spacing: 0px; border-style: solid; diff --git a/xCAT-UI/js/configure/discover.js b/xCAT-UI/js/configure/discover.js index 6cdd3c495..18a96f32d 100644 --- a/xCAT-UI/js/configure/discover.js +++ b/xCAT-UI/js/configure/discover.js @@ -184,7 +184,7 @@ function createBackButton(){ function getDiscoverEnv(envName){ if (discoverEnv[envName]){ return discoverEnv[envName]; - } + } else{ return ''; } @@ -331,7 +331,6 @@ function initSelectPlatform(){ temp += '

This wizard will guide you through the process of defining the naming conventions within' + 'your cluster, discovering the hardware on your network, and automatically defining it in the xCAT' + 'database.
Choose which type of hardware you want to discover, and then click Next.

'; - temp += ' System x hardware (not implemented yet)
'; temp += ' System p hardware (P7 IH)
'; temp += ' System p hardware (Non P7 IH)
'; @@ -359,9 +358,9 @@ function initSelectPlatform(){ function getPlatform(){ var radioValue = $('#discoverContentDiv :checked').attr('id'); setDiscoverEnv('machineType', radioValue); - return true; } + /** * Step 2: Cluster basic patterns * users can input the switches' name range, the number of port, start ip and port prefix @@ -413,7 +412,6 @@ function initBasicPattern(){ showString += ''; $('#discoverContentDiv').append(showString); - $('#discoverContentDiv [title]').tooltip({ position: "center right", offset: [-2, 10], @@ -640,6 +638,7 @@ function checkSupernode(operType){ cmd : 'echo -e "' + args + '" > /tmp/websupernode.txt' } }); + return true; } @@ -811,6 +810,7 @@ function calcEndIp(ipStart, num){ ipArray[0] = ipArray[0] + parseInt(sum / 255); return (ipArray.join('.')); } + /** * Step 4: check the input are all filled * @@ -936,7 +936,6 @@ function initDiscoverFrames(){ for (var i in frameArray){ $('#frameTd').append('

' + frameArray[i] + '

'); - } for (var i in mtmsArray){ @@ -1082,6 +1081,7 @@ function initConfig(operType){ createSetupFile(); } + /** * Step 7: create the xcat configure file * @@ -1175,6 +1175,7 @@ function runSetup(){ } }); } + /** * Step 7: create the dhcp configure file * @@ -1341,9 +1342,9 @@ function lsslpWriteHMC(){ tempSpan.addClass('ui-icon-check'); lsslpWriteCec(); } - }); + }); } - }); + }); } }); } diff --git a/xCAT-UI/js/custom/blade.js b/xCAT-UI/js/custom/blade.js index c55b0ce08..968126daf 100644 --- a/xCAT-UI/js/custom/blade.js +++ b/xCAT-UI/js/custom/blade.js @@ -203,20 +203,20 @@ bladePlugin.prototype.loadResources = function() { bladePlugin.prototype.addNode = function() { var nodeTypeSelectDia = $('
'); nodeTypeSelectDia.append('
'); + ''); //append the mm div var mmStr = '
' + - '

' + - '' + + '

' + + '' + '
'; //append the blade div var bladeStr = '