From 057b05e3bfe3555b959b891726f4ee2547aa5214 Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 12 Sep 2011 19:47:26 +0000 Subject: [PATCH] Cleaned up code. Fixed spelling mistakes. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10502 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/blade.js | 238 ++++++++++---------- xCAT-UI/js/custom/customUtils.js | 365 +++++++++++++++++-------------- xCAT-UI/js/custom/hmc.js | 102 ++++----- xCAT-UI/js/custom/ipmi.js | 51 +++-- xCAT-UI/js/nodes/nodes.js | 2 +- xCAT-UI/js/ui.js | 4 +- 6 files changed, 411 insertions(+), 351 deletions(-) diff --git a/xCAT-UI/js/custom/blade.js b/xCAT-UI/js/custom/blade.js index 2ea3b5bef..e4d42aa93 100644 --- a/xCAT-UI/js/custom/blade.js +++ b/xCAT-UI/js/custom/blade.js @@ -170,91 +170,96 @@ bladePlugin.prototype.loadResources = function() { * @return Nothing */ bladePlugin.prototype.addNode = function() { - var nodeTypeSelectDia = $('
'); - var info = createInfoBar('Add a node range'); - nodeTypeSelectDia.append(info); - nodeTypeSelectDia.append('
'); + var diag = $('
'); + var info = createInfoBar('Add an Advanced Management Module (AMM) or blade'); + diag.append(info); + + // Select node type + diag.append($('
' + + '
')); - //append the mm div - var mmStr = '
' + - '

' + - '' + - '
'; + // Advanced Management Module (AMM) section + var amm = $('
'); + amm.append($('
')); + amm.append($('
')); + diag.append(amm); - //append the blade div - var bladeStr = '