From d06de0db6810d093edcb01f38bc0179da60930ed Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 21 Jun 2011 06:28:48 +0000 Subject: [PATCH] fix bugs on group name click event git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/css/style.css | 4 ++-- xCAT-UI/js/nodes/nodes.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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);