mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05:00
Fixed multi-display selector in web app.
This commit is contained in:
parent
e3e6aa25d2
commit
8a45dd185d
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meshcentral",
|
||||
"version": "0.3.3-b",
|
||||
"version": "0.3.3-c",
|
||||
"keywords": [
|
||||
"Remote Management",
|
||||
"Intel AMT",
|
||||
|
File diff suppressed because one or more lines are too long
@ -4481,6 +4481,7 @@
|
||||
deskFocusBtn.value = 'All Focus';
|
||||
if (fullscreen == true) { deskToggleFull(); }
|
||||
webRtcDesktopReset();
|
||||
deskPreferedStickyDisplay = 0;
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
@ -4778,17 +4779,20 @@
|
||||
Q("Desk")['toBlob'](function (blob) { saveAs(blob, n + ".jpg"); });
|
||||
}
|
||||
|
||||
function deskDisplayInfo(sender, info, selDisplay, selItem) {
|
||||
function deskDisplayInfo(sender, info, selDisplay) {
|
||||
var txt = Q('termdisplays').value;
|
||||
if (info.length > 0) { var options = ''; for (var x in info) { options += '<option' + ((txt == info[x])?' selected':'') + '>' + info[x] + '</option>'; } QH('termdisplays', options); }
|
||||
if (info.length > 0) { var options = ''; for (var x in info) { options += '<option' + ((selDisplay == x) ? ' selected' : '') + '>' + info[x] + '</option>'; } QH('termdisplays', options); }
|
||||
QV('termdisplays', info.length > 1);
|
||||
if ((deskPreferedStickyDisplay != selDisplay) && (info.length > deskPreferedStickyDisplay)) { desktop.m.SetDisplay(deskPreferedStickyDisplay); }
|
||||
}
|
||||
|
||||
function deskGetDisplayNumbers(e) { desktop.m.GetDisplayNumbers(); }
|
||||
|
||||
var deskPreferedStickyDisplay = 0;
|
||||
function deskSetDisplay(e) {
|
||||
var display = 0, txt = Q('termdisplays').value;
|
||||
if (txt == "All Displays") display = 65535; else display = parseInt(txt.substring(8));
|
||||
deskPreferedStickyDisplay = display;
|
||||
desktop.m.SetDisplay(display);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user