Add onclick events for GuacUI.ListGroup and GuacUI.Connection. Implement GuacUI.openConnection(), replacing GuacamoleService.Connection.open().

This commit is contained in:
Michael Jumper
2013-08-13 15:27:26 -07:00
parent 4e5e401168
commit 9f62d25de3
2 changed files with 97 additions and 70 deletions

View File

@@ -155,24 +155,6 @@ GuacamoleService.Connection = function(protocol, id, name) {
};
/**
* Opens this connection in a new tab/window.
*/
this.open = function() {
// Get URL
var url = "client.xhtml?id=" + encodeURIComponent(guac_connection.id);
// Attempt to focus existing window
var current = window.open(null, guac_connection.id);
// If window did not already exist, set up as
// Guacamole client
if (!current.GuacUI)
window.open(url, guac_connection.id);
};
};
/**