Set parent when creating.
This commit is contained in:
1 parent
7c2ce7d8eb
commit
5dcbd24206
1 file changed
+6
-2
@@ -904,8 +904,10 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, create
|
// Otherwise, create
|
||||||
else
|
else {
|
||||||
|
updated_connection.parent = location_value;
|
||||||
GuacamoleService.Connections.create(updated_connection, parameters);
|
GuacamoleService.Connections.create(updated_connection, parameters);
|
||||||
|
}
|
||||||
|
|
||||||
// Hide dialog and reset UI
|
// Hide dialog and reset UI
|
||||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||||
@@ -1090,8 +1092,10 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, create
|
// Otherwise, create
|
||||||
else
|
else {
|
||||||
|
updated_group.parent = location_value;
|
||||||
GuacamoleService.ConnectionGroups.create(updated_group, parameters);
|
GuacamoleService.ConnectionGroups.create(updated_group, parameters);
|
||||||
|
}
|
||||||
|
|
||||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||||
GuacAdmin.reset();
|
GuacAdmin.reset();
|
||||||
|
|||||||
Reference in new issue
Block a user