mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Sorted device groups in device group move dialog.
This commit is contained in:
parent
f18365a413
commit
7da76853b2
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
@ -6105,11 +6105,10 @@
|
||||
if (nodeids.length == 1) { try { targetMeshId = meshes[getNodeFromId(nodeids[0])]._id; } catch (ex) { } }
|
||||
|
||||
// List all available alternative groups
|
||||
var y = '<select id=p10newGroup style=width:236px>', count = 0;
|
||||
for (var i in meshes) {
|
||||
var meshrights = GetMeshRights(i);
|
||||
if ((meshes[i]._id != targetMeshId) && (meshrights & 4)) { count++; y += '<option value=\'' + meshes[i]._id + '\'>' + meshes[i].name + '</option>'; }
|
||||
}
|
||||
var y = '<select id=p10newGroup style=width:236px>', count = 0, altGroups = [];
|
||||
for (var i in meshes) { var meshrights = GetMeshRights(i); if ((meshes[i]._id != targetMeshId) && (meshrights & 4)) { altGroups.push(meshes[i]); } }
|
||||
altGroups.sort(nameSort);
|
||||
for (var i in altGroups) { count++; y += '<option value=\'' + altGroups[i]._id + '\'>' + altGroups[i].name + '</option>'; }
|
||||
y += '</select>';
|
||||
|
||||
if (count > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user