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
This commit is contained in:
parent
1034d25033
commit
d06de0db68
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user