mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-17 20:00:19 +00:00
-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:
@ -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);
|
||||
|
Reference in New Issue
Block a user