#268: Rely on JavaScript for connections as well.

This commit is contained in:
Michael Jumper
2013-02-05 18:27:04 -08:00
parent 4eac608e7c
commit b974e44def

View File

@@ -81,8 +81,13 @@
var connection = new GuacamoleService.Connection("vnc", "Test connection");
for (var i=0; i<10; i++) {
var conn = new GuacUI.Connection(connection);
connections.appendChild(conn.getElement());
(function() {
var conn = new GuacUI.EditableConnection(connection);
connections.appendChild(conn.getElement());
conn.getElement().onclick = function() {
conn.setEditMode(!conn.edit);
};
})();
(function() {
var user = new GuacUI.EditableUser("testuser");