From 06c242ec425b988d5bfff56de879696d73bf7ad3 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 15 Aug 2013 00:02:02 -0700 Subject: [PATCH] Populate group type field. --- guacamole/src/main/webapp/scripts/admin-ui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/webapp/scripts/admin-ui.js b/guacamole/src/main/webapp/scripts/admin-ui.js index daf2b0d89..cf6327652 100644 --- a/guacamole/src/main/webapp/scripts/admin-ui.js +++ b/guacamole/src/main/webapp/scripts/admin-ui.js @@ -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");