Add support for connecting to groups.

This commit is contained in:
Michael Jumper
2013-08-15 00:09:18 -07:00
parent 06c242ec42
commit cd222e1dcf
3 changed files with 152 additions and 16 deletions

View File

@@ -197,6 +197,15 @@ GuacamoleRootUI.reset = function() {
GuacUI.openConnection(connection.id, GuacamoleRootUI.parameters);
};
// Open connection groups when clicked
group_view.ongroupclick = function(group) {
// Connect if balancing
if (group.type === GuacamoleService.ConnectionGroup.Type.BALANCING)
GuacUI.openConnectionGroup(group.id, GuacamoleRootUI.parameters);
};
// Save all connections for later reference
GuacamoleRootUI.connections = group_view.connections;