mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-10 13:18:07 -05:00
Fixed device group select all/none when not all devices are displayed.
This commit is contained in:
parent
9f30fa34de
commit
e29d78a2d5
@ -1901,7 +1901,7 @@ function onTunnelData(data) {
|
|||||||
var that = this.that;
|
var that = this.that;
|
||||||
if (u.Active.length > 0) {
|
if (u.Active.length > 0) {
|
||||||
var username = '"' + u.Active[0].Domain + '\\' + u.Active[0].Username + '"';
|
var username = '"' + u.Active[0].Domain + '\\' + u.Active[0].Username + '"';
|
||||||
sendConsoleText('Terminal: ' + username);
|
//sendConsoleText('Terminal: ' + username);
|
||||||
if (require('win-virtual-terminal').supported) {
|
if (require('win-virtual-terminal').supported) {
|
||||||
// ConPTY PseudoTerminal
|
// ConPTY PseudoTerminal
|
||||||
that.httprequest._dispatcher = require('win-dispatcher').dispatch({ user: username, modules: [{ name: 'win-virtual-terminal', script: getJSModule('win-virtual-terminal') }], launch: { module: 'win-virtual-terminal', method: (that.httprequest.protocol == 9 ? 'StartPowerShell' : 'Start'), args: [cols, rows] } });
|
that.httprequest._dispatcher = require('win-dispatcher').dispatch({ user: username, modules: [{ name: 'win-virtual-terminal', script: getJSModule('win-virtual-terminal') }], launch: { module: 'win-virtual-terminal', method: (that.httprequest.protocol == 9 ? 'StartPowerShell' : 'Start'), args: [cols, rows] } });
|
||||||
|
@ -5566,9 +5566,12 @@
|
|||||||
}
|
}
|
||||||
// Update the list of checked nodes
|
// Update the list of checked nodes
|
||||||
if (action == 1) {
|
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) {
|
} 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"; }
|
//if (action == 3) { window.location = "multidesktop.aspx?mesh=" + meshid + "&auto=1"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user