From 25bb2770e303a7faba577f0858bbf32bcb438869 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 3 Jul 2019 14:55:58 -0700 Subject: [PATCH] Agent and MeshCMD download fixes. --- views/default-min.handlebars | 13 +++++++------ views/default.handlebars | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 57c6ba0f..5b5a9c98 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -8868,8 +8868,8 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this // Windows agent install //x += "
To add a new computer to device group \"" + EscapeHtml(mesh.name) + "\", download the mesh agent and configuration file and install the agent on the computer to manage.

"; x += "
To add a new computer to device group \"" + EscapeHtml(mesh.name) + "\", download the mesh agent and install it the computer to manage. This agent has server and device group information embedded within it.

"; - x += addHtmlValue('Mesh Agent', 'Windows (.exe)'); - x += addHtmlValue('Mesh Agent', 'Windows x64 (.exe)'); + x += addHtmlValue('Mesh Agent', 'Windows (.exe) Windows x64 (.exe) ' + EscapeHtml(mesh.name) + ' settings (.msh)'); } x += "
"; @@ -8953,8 +8953,8 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this QV('aginsTypeDiv', v == 0); // Fix the links if needed - //Q('aginsw32lnk').href = (Q('aginsw32lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; - //Q('aginsw64lnk').href = (Q('aginsw64lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; + Q('aginsw32lnk').href = (Q('aginsw32lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; + Q('aginsw64lnk').href = (Q('aginsw64lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; if (debugmode > 0) { Q('aginswmshlnk').href = (Q('aginswmshlnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; } } @@ -10091,7 +10091,7 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this function showNotes(readonly, noteid) { if (xxdialogMode) return; - setDialogMode(2, "Notes", 2, showNotesEx, 'Notes can be viewed and changed by other administrators.', noteid); + setDialogMode(2, "Notes", 2, showNotesEx, 'Device group notes can be viewed and changed by other device group administrators.', noteid); meshserver.send({ action: 'getNotes', id: decodeURIComponent(noteid) }); } @@ -10401,7 +10401,7 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this } function meshCmdOsClick() { - var os = Q('aginsSelect').value, osn = ''; + var os = Q('aginsSelect').value, osn = '', osurl = ''; //Q('meshcmddownloadid').href = "meshagents?meshcmd=" + os; if (os == 3) { osn = 'MeshCmd (Win32 executable)'; } if (os == 4) { osn = 'MeshCmd (Win64 executable)'; } @@ -10410,6 +10410,7 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this if (os == 16) { osn = 'MeshCmd (MacOS, 64bit)'; } if (os == 25) { osn = 'MeshCmd (Linux ARM, 32bit)'; } QH('meshcmddownloadid', osn); + Q('meshcmddownloadid').setAttribute('href', 'meshagents?meshcmd=' + os); } function p10showiconselector() { diff --git a/views/default.handlebars b/views/default.handlebars index d1801135..46ffc896 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2813,8 +2813,8 @@ // Windows agent install //x += "
To add a new computer to device group \"" + EscapeHtml(mesh.name) + "\", download the mesh agent and configuration file and install the agent on the computer to manage.

"; x += "
To add a new computer to device group \"" + EscapeHtml(mesh.name) + "\", download the mesh agent and install it the computer to manage. This agent has server and device group information embedded within it.

"; - x += addHtmlValue('Mesh Agent', 'Windows (.exe)'); - x += addHtmlValue('Mesh Agent', 'Windows x64 (.exe)'); + x += addHtmlValue('Mesh Agent', 'Windows (.exe) Windows x64 (.exe) ' + EscapeHtml(mesh.name) + ' settings (.msh)'); } x += "
"; @@ -2898,8 +2898,8 @@ QV('aginsTypeDiv', v == 0); // Fix the links if needed - //Q('aginsw32lnk').href = (Q('aginsw32lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; - //Q('aginsw64lnk').href = (Q('aginsw64lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; + Q('aginsw32lnk').href = (Q('aginsw32lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; + Q('aginsw64lnk').href = (Q('aginsw64lnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; if (debugmode > 0) { Q('aginswmshlnk').href = (Q('aginswmshlnk').href.split('installflags=')[0]) + 'installflags=' + Q('aginsType').value; } } @@ -4036,7 +4036,7 @@ function showNotes(readonly, noteid) { if (xxdialogMode) return; - setDialogMode(2, "Notes", 2, showNotesEx, 'Notes can be viewed and changed by other administrators.', noteid); + setDialogMode(2, "Notes", 2, showNotesEx, 'Device group notes can be viewed and changed by other device group administrators.', noteid); meshserver.send({ action: 'getNotes', id: decodeURIComponent(noteid) }); } @@ -4346,7 +4346,7 @@ } function meshCmdOsClick() { - var os = Q('aginsSelect').value, osn = ''; + var os = Q('aginsSelect').value, osn = '', osurl = ''; //Q('meshcmddownloadid').href = "meshagents?meshcmd=" + os; if (os == 3) { osn = 'MeshCmd (Win32 executable)'; } if (os == 4) { osn = 'MeshCmd (Win64 executable)'; } @@ -4355,6 +4355,7 @@ if (os == 16) { osn = 'MeshCmd (MacOS, 64bit)'; } if (os == 25) { osn = 'MeshCmd (Linux ARM, 32bit)'; } QH('meshcmddownloadid', osn); + Q('meshcmddownloadid').setAttribute('href', 'meshagents?meshcmd=' + os); } function p10showiconselector() {