mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Fixed device group select all/none when not all devices are displayed.
This commit is contained in:
@@ -5566,9 +5566,12 @@
|
||||
}
|
||||
// Update the list of checked nodes
|
||||
if (action == 1) {
|
||||
for (var i in nodes) { if (nodes[i].meshid == meshid) { checkedNodeids[nodes[i]._id] = 1; } }
|
||||
for (var i in nodes) { if ((nodes[i].meshid == meshid) && (nodes[i].v == true)) { checkedNodeids[nodes[i]._id] = 1; } }
|
||||
} else if (action == 2) {
|
||||
for (var i in checkedNodeids) { if (getNodeFromId(i).meshid == meshid) { delete checkedNodeids[i]; } }
|
||||
for (var i in checkedNodeids) {
|
||||
var n = getNodeFromId(i);
|
||||
if ((n != null) && (n.meshid == meshid) && (n.v == true)) { delete checkedNodeids[i]; }
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (action == 3) { window.location = "multidesktop.aspx?mesh=" + meshid + "&auto=1"; }
|
||||
|
||||
Reference in New Issue
Block a user