Add onclick events for GuacUI.ListGroup and GuacUI.Connection. Implement GuacUI.openConnection(), replacing GuacamoleService.Connection.open().
This commit is contained in:
1 parent
4e5e401168
commit
9f62d25de3
2 files changed
+97
-70
No files matched your search
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user