mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 23:47:42 +00:00
Allow specific group to be selected.
This commit is contained in:
@@ -729,6 +729,9 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
||||
var group_select = new GuacAdmin.ConnectionGroupSelect(GuacAdmin.cached_root_group);
|
||||
location_container.appendChild(group_select.getElement());
|
||||
|
||||
// Pre-select current value
|
||||
group_select.select(location_value);
|
||||
|
||||
// Update location when chosen
|
||||
group_select.onselect = function(group) {
|
||||
location_value = group;
|
||||
@@ -1058,6 +1061,9 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
|
||||
var group_select = new GuacAdmin.ConnectionGroupSelect(GuacAdmin.cached_root_group);
|
||||
location_container.appendChild(group_select.getElement());
|
||||
|
||||
// Pre-select current value
|
||||
group_select.select(location_value);
|
||||
|
||||
// Update location when chosen
|
||||
group_select.onselect = function(selected_group) {
|
||||
|
||||
@@ -1255,6 +1261,15 @@ GuacAdmin.ConnectionGroupSelect = function(group) {
|
||||
return container;
|
||||
};
|
||||
|
||||
/**
|
||||
* Pre-selects the given group.
|
||||
*
|
||||
* @param {GuacamoleService.ConnectionGroup} group The group to select.
|
||||
*/
|
||||
this.select = function(group) {
|
||||
view.expand(group);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
GuacAdmin.reset = function() {
|
||||
|
Reference in New Issue
Block a user