From 5dcbd242068ab0dad5f306c18df4a5a83966982c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 14 Aug 2013 18:59:33 -0700 Subject: [PATCH] Set parent when creating. --- guacamole/src/main/webapp/scripts/admin-ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/webapp/scripts/admin-ui.js b/guacamole/src/main/webapp/scripts/admin-ui.js index b6a14ef66..d13cfbb58 100644 --- a/guacamole/src/main/webapp/scripts/admin-ui.js +++ b/guacamole/src/main/webapp/scripts/admin-ui.js @@ -904,8 +904,10 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) { } // Otherwise, create - else + else { + updated_connection.parent = location_value; GuacamoleService.Connections.create(updated_connection, parameters); + } // Hide dialog and reset UI dialog.getElement().parentNode.removeChild(dialog.getElement()); @@ -1090,8 +1092,10 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) { } // Otherwise, create - else + else { + updated_group.parent = location_value; GuacamoleService.ConnectionGroups.create(updated_group, parameters); + } dialog.getElement().parentNode.removeChild(dialog.getElement()); GuacAdmin.reset();