-Correct appearance of nodes at the root due to previous change

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-09-15 20:10:51 +00:00
parent 502cdedf8b
commit b421ab3302

View File

@ -39,10 +39,12 @@ require_once "js/jsonwrapper.php";
}
} #If there were more groups than nodes, leave the signal to noise ratio down
foreach ($rvals->xcatresponse->node as $node) {
$jdata[] = array("data"=>"$node",
if ($root == 0) {
foreach ($rvals->xcatresponse->node as $node) {
$jdata[] = array("data"=>"$node",
"attributes"=>array("id"=>",$node",
"rel"=>'node'));
}
}
# header('Content-type: text/html');
echo json_encode($jdata);