diff --git a/xCAT-UI/css/style.css b/xCAT-UI/css/style.css index b29975afb..72cdede9d 100644 --- a/xCAT-UI/css/style.css +++ b/xCAT-UI/css/style.css @@ -174,7 +174,7 @@ body { vertical-align: top; float: left; position: relative; - margin: 15px 10px 15px 15px; + margin: 15px 0px 15px 15px; } #groups ul { @@ -204,7 +204,7 @@ body { /*--------------- Nodes section ---------------*/ #nodes { - width: 800px; + width: 790px; min-height: 570px; margin: 15px 0px 15px 0px; padding: 0px 0px 0px 10px; diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 4fe3fffe9..44dee1eec 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -279,13 +279,11 @@ function loadGroups(data) { // Load nodes onclick $('#groups').bind('select_node.jstree', function(event, data) { - // If there are subgroups, remove them - data.rslt.obj.children('ul').remove(); var thisGroup = jQuery.trim(data.rslt.obj.text()); if (thisGroup) { //click the root, return directly - if ('root' == thisGroup){ + if ('Groups' == thisGroup){ return; } drawNodesArea(thisGroup, '', thisGroup);