Populate group type field.

This commit is contained in:
Michael Jumper
2013-08-15 00:02:02 -07:00
parent a3d7f23c9e
commit 06c242ec42

View File

@@ -1072,8 +1072,11 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
bal_type.textContent = "Balancing";
bal_type.value = "balancing";
// Default to organizational
type_field.value = "organizational";
// Read type from group
if (group.type === GuacamoleService.ConnectionGroup.Type.ORGANIZATIONAL)
type_field.value = "organizational";
else if (group.type === GuacamoleService.ConnectionGroup.Type.BALANCING)
type_field.value = "balancing";
// Add save button
var save_button = GuacUI.createChildElement(dialog.getFooter(), "button");