From d5e1d9bf016820e8d97b5d3c51265cf56f731dae Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 29 Jul 2010 17:59:33 +0000 Subject: [PATCH] Corrected typo in nodeset.js git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6910 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodeset.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/xCAT-UI/js/nodes/nodeset.js b/xCAT-UI/js/nodes/nodeset.js index 582131857..9b2902522 100644 --- a/xCAT-UI/js/nodes/nodeset.js +++ b/xCAT-UI/js/nodes/nodeset.js @@ -229,6 +229,8 @@ function updateNodesetStatus(data) { } else { // Create target nodes string var tgtNodesStr = ''; + var nodes = tgts.split(','); + // Loop through each node for ( var i in nodes) { // If it is the 1st and only node @@ -252,21 +254,19 @@ function updateNodesetStatus(data) { } $('#' + statBarId).append('

Node definition created for ' + tgtNodesStr + '

'); + $.ajax( { + url : 'lib/cmd.php', + dataType : 'json', + data : { + cmd : 'makehosts', + tgt : '', + args : '', + msg : 'cmd=makehosts;inst=' + inst + }, + + success : updateNodesetStatus + }); } - - // Update /etc/hosts - $.ajax( { - url : 'lib/cmd.php', - dataType : 'json', - data : { - cmd : 'makehosts', - tgt : '', - args : '', - msg : 'cmd=makehosts;inst=' + inst - }, - - success : updateNodesetStatus - }); } /**