|
@ -43,10 +43,11 @@ Ext.extend( Ext.ux.MumbleChannelViewer, Ext.tree.TreePanel, { |
|
|
var child = { |
|
|
var child = { |
|
|
text: json.channels[i].name, |
|
|
text: json.channels[i].name, |
|
|
id: ("channel_" + json.channels[i].id), |
|
|
id: ("channel_" + json.channels[i].id), |
|
|
leaf: false, |
|
|
|
|
|
|
|
|
leaf: true, |
|
|
icon: '/static/mumble/channel.png', |
|
|
icon: '/static/mumble/channel.png', |
|
|
children: [], |
|
|
children: [], |
|
|
}; |
|
|
}; |
|
|
|
|
|
node.leaf = false; |
|
|
node.children.push( child ); |
|
|
node.children.push( child ); |
|
|
subchan_users += populateNode( child, json.channels[i] ); |
|
|
subchan_users += populateNode( child, json.channels[i] ); |
|
|
} |
|
|
} |
|
@ -57,6 +58,7 @@ Ext.extend( Ext.ux.MumbleChannelViewer, Ext.tree.TreePanel, { |
|
|
leaf: true, |
|
|
leaf: true, |
|
|
icon: '/static/mumble/talking_off.png', |
|
|
icon: '/static/mumble/talking_off.png', |
|
|
}; |
|
|
}; |
|
|
|
|
|
node.leaf = false; |
|
|
node.children.push( child ); |
|
|
node.children.push( child ); |
|
|
} |
|
|
} |
|
|
if( json.id == 0 || json.users.length > 0 || subchan_users ) |
|
|
if( json.id == 0 || json.users.length > 0 || subchan_users ) |
|
|