All service call lists should be sorted.
This commit is contained in:
1 parent
4a6036baa2
commit
f466409d2e
2 files changed
+6
-3
No files matched your search
@@ -145,9 +145,6 @@ GuacamoleRootUI.reset = function() {
|
||||
try {
|
||||
connections = GuacamoleService.Connections.list(parameters);
|
||||
|
||||
// Sort connections by ID
|
||||
connections.sort(GuacamoleService.Connections.comparator);
|
||||
|
||||
// Show admin elements if admin permissions available
|
||||
var permissions = GuacamoleService.Permissions.list();
|
||||
if (permissions.administer
|
||||
|
||||
@@ -316,6 +316,9 @@ GuacamoleService.Connections = {
|
||||
|
||||
}
|
||||
|
||||
// Sort connections by ID
|
||||
connections.sort(GuacamoleService.Connections.comparator);
|
||||
|
||||
return connections;
|
||||
|
||||
},
|
||||
@@ -448,6 +451,9 @@ GuacamoleService.Users = {
|
||||
for (var i=0; i<userElements.length; i++)
|
||||
users.push(userElements[i].getAttribute("name"));
|
||||
|
||||
// Sort by username
|
||||
users.sort();
|
||||
|
||||
return users;
|
||||
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user