From 0c6801effb6a10c78de5eb6587e4c12b18252acb Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 18 Nov 2010 00:09:17 +0000 Subject: [PATCH] Fixed jsTree to handle subgroups. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 729eb679a..bc43768a4 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -119,6 +119,8 @@ 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) { // Clear nodes division