mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Set parent when creating.
This commit is contained in:
@@ -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