';
x += ' | ' + "Verified handle" + ' ' + EscapeHtml(userinfo.msghandle) + ' ';
x += '';
- setModalContent('xxAddAgent', 'Messaging Notifications', x);
+ setModalContent('xxAddAgent', "Messaging Notifications", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => account_manageMessagingRemove);
account_managePhoneRemoveValidate();
} else {
@@ -13809,7 +13688,7 @@
x += '';
x += '';
xxdialogTag = 'VerifyMessaging';
- setModalContent('xxAddAgent', 'Messaging Notifications', x);
+ setModalContent('xxAddAgent', "Messaging Notifications", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_manageMessagingAdd());
Q('d2handleinput').focus();
account_manageMessagingValidate();
@@ -13839,31 +13718,22 @@
function account_manageAuthEmail() {
if (xxdialogMode || ((features & 0x00800000) == 0)) return;
var emailU2Fenabled = ((userinfo.otpekey == 1) && (userinfo.email != null) && (userinfo.emailVerified == true));
- setModalContent('xxAddAgent', 'Email Authentication', "When enabled, on each login, you will be given the option to receive a login token to you email account for added security." + '
');
+ setModalContent('xxAddAgent', "Email Authentication", "When enabled, on each login, you will be given the option to receive a login token to you email account for added security." + '
');
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
if (emailU2Fenabled != Q('email2facheck').checked) { meshserver.send({ action: 'otpemail', enabled: Q('email2facheck').checked }); }
});
}
- function account_manageAuthDuo() {
- if (xxdialogMode || ((features2 & 0x20000000) == 0)) return;
- var duoU2Fenabled = ((userinfo.otpduo == 1));
- setModalContent('xxAddAgent', 'Duo Authentication', "When enabled, on each login, you will be given the option to use Duo for added security." + '
');
- showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
- if (duoU2Fenabled != Q('duo2facheck').checked) { meshserver.send({ action: 'otpduo', enabled: Q('duo2facheck').checked }); }
- });
- }
-
function account_manageAuthDuo() {
if (xxdialogMode || ((features2 & 0x20000000) == 0)) return;
var duoU2Fenabled = ((userinfo.otpduo == 1));
if (duoU2Fenabled == false) {
- setModalContent('xxAddAgent', 'Duo Authentication', "Confirm enabling of Duo 2FA login security. Once enabled you will be given the option to use Duo at login for added security. Click ok to go thru the steps to enable Duo." + '');
+ setModalContent('xxAddAgent', "Duo Authentication", "Confirm enabling of Duo 2FA login security. Once enabled you will be given the option to use Duo at login for added security. Click ok to go thru the steps to enable Duo." + '');
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
window.location.href = '/add-duo?rurl=' + encodeURIComponentEx(window.location.href) + ((urlargs.key)?('&key=' + urlargs.key):'');
});
} else {
- setModalContent('xxAddAgent', 'Duo Authentication', '' + '');
+ setModalContent('xxAddAgent', "Duo Authentication", '' + '');
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
meshserver.send({ action: 'otpduo', enabled: false });
});
@@ -13884,7 +13754,7 @@
function account_addOtp() {
if (xxdialogMode || (userinfo.otpsecret == 1) || ((features & 4096) == 0)) return;
xxdialogTag = 'otpauth-request';
- setModalContent('xxAddAgent', 'Authenticator App', ('' + "Loading..." + ' '));
+ setModalContent('xxAddAgent', "Authenticator App", ('' + "Loading..." + ' '));
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'otpauth-setup', secret: Q('d2optsecret').attributes.secret.value, token: Q('d2otpauthinput').value }); });
meshserver.send({ action: 'otpauth-request' });
}
@@ -13897,7 +13767,7 @@
function account_removeOtp() {
if (xxdialogMode || (userinfo.otpsecret != 1) || ((features & 4096) == 0)) return;
- setModalContent('xxAddAgent', 'Authenticator App', 'Confirm removal of authenticator application 2-step login?');
+ setModalContent('xxAddAgent', "Authenticator App", "Confirm removal of authenticator application 2-step login?");
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'otpauth-clear' }); });
}
@@ -13912,7 +13782,7 @@
if (xxdialogMode || ((features2 & 0x40) == 0)) return;
if (userinfo.otpdev == 1) {
// Remove the 2FA device
- setModalContent('xxAddAgent', 'Authentication Device', 'Confirm removal of push authentication device?');
+ setModalContent('xxAddAgent', "Authentication Device", "Confirm removal of push authentication device?");
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'otpdev-clear' }); });
} else {
// Create a list of all mobile devices
@@ -13920,7 +13790,7 @@
for (var i in nodes) { var node = nodes[i]; if ((node.agent != null) && (node.agent.id == 14) && (node.pmt == 1) && (GetNodeRights(node) == 0xFFFFFFFF)) { mobileDevices.push(node); } }
if (mobileDevices.length == 0) {
// No mobile devices found
- setModalContent('xxAddAgent', 'Authentication Device', 'In order to use push notification authentication, a mobile device must be setup in your account with full rights.');
+ setModalContent('xxAddAgent', "Authentication Device", 'In order to use push notification authentication, a mobile device must be setup in your account with full rights.');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
} else {
// Set a 2FA device
@@ -13929,7 +13799,7 @@
for (var i in mobileDevices) { y += ''; }
y += '';
x += addHtmlFormFloating("Device", y);
- setModalContent('xxAddAgent', 'Authentication Device', x);
+ setModalContent('xxAddAgent', "Authentication Device", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'otpdev-set', nodeid: Q('d2devselect').value }); });
}
}
@@ -13952,7 +13822,7 @@
x += addHtmlFormFloating("Key Name", '');
x += addHtmlFormFloating("YubiKey™ OTP", '');
}
- setModalContent('xxAddAgent', 'Add Security Key', x);
+ setModalContent('xxAddAgent', "Add Security Key", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => account_addhkeyEx(3, type));
Q('dp1keyname').focus();
}
@@ -13967,7 +13837,7 @@
if (type == 2) {
meshserver.send({ action: 'otp-hkey-yubikey-add', name: name, otp: Q('dp1key').value });
xxdialogTag = 'otpauth-hardware-manage';
- setModalContent('xxAddAgent', 'Add Security Key', ' ' + "Checking..." + '
');
+ setModalContent('xxAddAgent', "Add Security Key", ' ' + "Checking..." + '
');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
} else if (type == 3) {
meshserver.send({ action: 'webauthn-startregister', name: name });
@@ -14003,7 +13873,7 @@
y += ' ' + "Help translate MeshCentral" + '';
}
- setModalContent('xxAddAgent', 'Localization Settings', y);
+ setModalContent('xxAddAgent', "Localization Settings", y);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_showLocalizationSettingsEx);
return false;
}
@@ -14036,12 +13906,12 @@
var options = { 0: "Unlimited", 1: "1 minute", 5: "5 minutes", 10: "10 minutes", 15: "15 minutes", 30: "30 minutes", 45: "45 minutes", 60: "60 minutes", 120: "2 hours", 240: "4 hours", 480: "8 hours", 720: "12 hours", 960: "16 hours", 1440: "24 hours", 2880: "2 days", 5760: "4 days", 10080: "7 days" }
for (var i in options) { y += ''; }
x += '';
- x += '';
- x += '';
+ x += '';
+ x += '';
x += ' ';
- x += addHtmlFormFloating('Expire Time', '')
+ x += addHtmlFormFloating("Expire Time", '')
- setModalContent('xxAddAgent', 'Create Login Token', x);
+ setModalContent('xxAddAgent', "Create Login Token", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_createLoginTokenEx);
QE('idx_dlgOkButton', false);
@@ -14065,7 +13935,7 @@
x += '';
x += '';
- setModalContent('xxAddAgent', 'Notification Settings', x);
+ setModalContent('xxAddAgent', "Notification Settings", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_showAccountNotifySettingsEx);
var n = getstore('notifications', 0);
@@ -14090,7 +13960,7 @@
function account_showVerifyEmail() {
if (xxdialogMode || (userinfo.emailVerified == true) || (serverinfo.emailcheck != true)) return false;
var x = "Click ok to send a verification mail to:" + '
' + EscapeHtml(userinfo.email) + ' ' + "Please wait a few minute to receive the verification.";
- setModalContent('xxAddAgent', 'Email Verification', x);
+ setModalContent('xxAddAgent', "Email Verification", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => account_showVerifyEmailEx);
return false;
}
@@ -14104,7 +13974,7 @@
var x = "Change your account email address here." + '
';
x += ' ';
- setModalContent('xxAddAgent', 'Email Address Change', x);
+ setModalContent('xxAddAgent', "Email Address Change", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_changeEmail);
if (userinfo.email != null) { Q('dp2email').value = userinfo.email; }
@@ -14140,7 +14010,7 @@
x += '';
x += '';
- setModalContent('xxAddAgent', 'Delete Account', x);
+ setModalContent('xxAddAgent', "Delete Account", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
dialogclose(1);
});
@@ -14189,7 +14059,7 @@
//x += '';
//x += ' ';
- setModalContent('xxAddAgent', 'Change Password', x);
+ setModalContent('xxAddAgent', "Change Password", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_showChangePasswordEx);
Q('apassword0').focus();
@@ -14208,29 +14078,29 @@
function account_showThemesSwitcher() {
if (xxdialogMode) return false;
var themes = [
- { value: "default", label: "Default" },
- { value: "cerulean", label: "Cerulean" },
- { value: "cosmo", label: "Cosmo" },
- { value: "cyborg", label: "Cyborg" },
- { value: "darkly", label: "Darkly" },
- { value: "flatly", label: "Flatly" },
- { value: "journal", label: "Journal" },
- { value: "litera", label: "Litera" },
- { value: "lumen", label: "Lumen" },
- { value: "lux", label: "Lux" },
- { value: "materia", label: "Materia" },
- { value: "minty", label: "Minty" },
- { value: "morph", label: "Morph" },
- { value: "pulse", label: "Pulse" },
- { value: "sandstone", label: "Sandstone" },
- { value: "simplex", label: "Simplex" },
- { value: "sketchy", label: "Sketchy" },
- { value: "solar", label: "Solar" },
- { value: "spacelab", label: "Spacelab" },
- { value: "united", label: "United" },
- { value: "vapor", label: "Vapor" },
- { value: "yeti", label: "Yeti" },
- { value: "zephyr", label: "Zephyr" }
+ { value: 'default', label: "Default" },
+ { value: 'cerulean', label: "Cerulean" },
+ { value: 'cosmo', label: "Cosmo" },
+ { value: 'cyborg', label: "Cyborg" },
+ { value: 'darkly', label: "Darkly" },
+ { value: 'flatly', label: "Flatly" },
+ { value: 'journal', label: "Journal" },
+ { value: 'litera', label: "Litera" },
+ { value: 'lumen', label: "Lumen" },
+ { value: 'lux', label: "Lux" },
+ { value: 'materia', label: "Materia" },
+ { value: 'minty', label: "Minty" },
+ { value: 'morph', label: "Morph" },
+ { value: 'pulse', label: "Pulse" },
+ { value: 'sandstone', label: "Sandstone" },
+ { value: 'simplex', label: "Simplex" },
+ { value: 'sketchy', label: "Sketchy" },
+ { value: 'solar', label: "Solar" },
+ { value: 'spacelab', label: "Spacelab" },
+ { value: 'united', label: "United" },
+ { value: 'vapor', label: "Vapor" },
+ { value: 'yeti', label: "Yeti" },
+ { value: 'zephyr', label: "Zephyr" }
];
var currentTheme = getstore('theme') || 'default';
@@ -14238,11 +14108,11 @@
// Create a set of themes already in "Recent Themes" to avoid duplicates
var recentThemesSet = new Set(lastThemes);
- var x = '';
+ var x = ' ';
x += ' ';
- setModalContent('xxAddAgent', 'Switch Theme', x);
+ setModalContent('xxAddAgent', "Switch theme", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return false;
}
function account_switchThemeEx() {
- var themeSwitcher = document.getElementById("theme-switcher");
+ var themeSwitcher = document.getElementById('theme-switcher');
const selectedTheme = themeSwitcher.value;
const safeTheme = encodeURIComponent(selectedTheme);
- var themeStylesheet = document.getElementById("theme-stylesheet");
+ var themeStylesheet = document.getElementById('theme-stylesheet');
var newThemeStylesheet = `styles/themes/${safeTheme}/bootstrap.min.css`;
themeStylesheet.href = newThemeStylesheet;
// Save selected theme
@@ -14291,21 +14161,21 @@
function account_createMesh() {
// Check if we are disallowed from creating a device group
if ((userinfo.siteadmin != 0xFFFFFFFF) && ((userinfo.siteadmin & 64) != 0)) {
- setModalContent('xxAddAgent', 'New Device Group', 'This account does not have the rights to create a new device group.');
+ setModalContent('xxAddAgent', "New Device Group", 'This account does not have the rights to create a new device group.');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return false;
}
// Remind the user to verify the email address
if ((userinfo.emailVerified !== true) && (serverinfo.emailcheck == true) && (userinfo.siteadmin != 0xFFFFFFFF)) {
- setModalContent('xxAddAgent', 'Account Security', 'Unable to access this feature until an email address is verified. This is required for password recovery. Go to the "My Account" tab to change and verify an email address.');
+ setModalContent('xxAddAgent', "Account Security", 'Unable to access this feature until a email address is verified. This is required for password recovery. Go to the "My Account" tab to change and verify an email address.');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return false;
}
// Remind the user to add two-factor authentication
if ((features & 0x00040000) && (count2factoraAuths() == 0)) {
- setModalContent('xxAddAgent', 'Account Security', 'Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the "My Account" tab and look at the "Account Security" section.');
+ setModalContent('xxAddAgent', "Account Security", 'Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the "My Account" tab and look at the "Account Security" section.');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return false;
}
@@ -14322,7 +14192,7 @@
}
// Prepare the modal content
- var x = "Create a new device group using the options below" + ' ';
+ var x = "Create a new device group using the options below." + ' ';
var localGroupType = '';
x += addHtmlFormFloating("Name", ' ');
@@ -14350,7 +14220,7 @@
x += ' ';
// Inject content into the modal
- setModalContent('xxAddAgent', 'New Device Group', x);
+ setModalContent('xxAddAgent', "New Device Group", x);
// Show the modal
showModal('xxAddAgentModal', 'idx_dlgOkButton', account_createMeshEx);
@@ -14491,7 +14361,7 @@
function updateLoginTokens() {
var x = '', count = 1;
if ((loginTokens != null) && (loginTokens.length > 0)) {
- x += '' + "Active Login Tokens" + ' - ';
+ x += '' + "Active Login Tokens" + ' - ';
x += '' + "Name" + ' | ' + "Username" + ' | ';
for (var i = 0; i < loginTokens.length; i++) {
var ltoken = loginTokens[i];
@@ -14517,7 +14387,7 @@
var x = "Confirm removal of this login token?" + '
';
x += addHtmlValue("Name", EscapeHtml(token.name));
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
- setModalContent('xxAddAgent', 'Remove Login Token', x);
+ setModalContent('xxAddAgent', "Remove Login Token", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => function (b, tokenUser) { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
}
@@ -14536,14 +14406,14 @@
x += addHtmlValue("Credentials", '' + "Google Drive Console" + '');
x += addHtmlFormFloating("Client ID", '');
x += addHtmlFormFloating("Client Secret", '');
- setModalContent('xxAddAgent', 'Google Drive Backup', x);
+ setModalContent('xxAddAgent', "Google Drive Backup", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => server_setupGoogleDriveBackupEx(3, 'gd1'));
Q('gdclientid').focus();
QE('idx_dlgOkButton', false);
} else if (gd.state == 3) {
var x = '' + "Google Drive backup is currently active." + ' ';
x += ' ';
- setModalContent('xxAddAgent', 'Google Drive Backup', x);
+ setModalContent('xxAddAgent', "Google Drive Backup", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => server_setupGoogleDriveBackupEx(3, 'gd0'));
QE('idx_dlgOkButton', false);
}
@@ -14561,28 +14431,26 @@
function server_showRestoreDlg() {
if (xxdialogMode) return false;
- var x = "Restore the server using a backup, this will delete the existing server data. Only do this if you know what you are doing." + '
';
+ var x = "Restore the server using a backup," + ' ' + "this will delete the existing server data." + ' ' + "Only do this if you know what you are doing." + '
';
x += '';
+ x += '';
+ x += '';
- setModalContent('xxAddAgent', 'Restore Server', x);
+ setModalContent('xxAddAgent', "Restore Server", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton');
account_validateServerRestore();
return false;
}
function account_validateServerRestore() {
- QE('account_dlgOkButton', Q('account_dlgFileInput').files.length == 1);
+ QE('idx_dlgOkButton', Q('account_dlgFileInput').files.length == 1);
}
function server_showVersionDlg() {
if (xxdialogMode) return false;
xxdialogMode = 2; xxdialogTag = 'MeshCentralServerUpdate';
- setModalContent('xxAddAgent', 'MeshCentral Version', 'Loading...');
+ setModalContent('xxAddAgent', "MeshCentral Version", "Loading...");
showModal('xxAddAgentModal', 'idx_dlgOkButton');
meshserver.send({ action: 'serverversion' });
return false;
@@ -14604,7 +14472,7 @@
function server_showErrorsDlg() {
if (xxdialogMode) return false;
xxdialogMode = 2; xxdialogTag = 'MeshCentralServerErrors';
- setModalContent('xxAddAgent', 'Server Errors', 'Loading...');
+ setModalContent('xxAddAgent', "Server Errors", "Loading...");
meshserver.send({ action: 'servererrors' });
return false;
}
@@ -14759,7 +14627,7 @@
if (meshrights & 1) { x += ' '; }
x += '
';
if (meshrights & 2) {
- x += '';
+ x += '';
if (usergroups != null) {
var userGroupCount = 0, newUserGroup = false;
for (var i in usergroups) {
@@ -14767,7 +14635,7 @@
userGroupCount++;
if ((currentMesh.links == null) || (currentMesh.links[i] == null)) { newUserGroup = true; }
}
- if ((userGroupCount > 0) && (newUserGroup)) { x += ''; }
+ if ((userGroupCount > 0) && (newUserGroup)) { x += ''; }
}
}
@@ -14780,15 +14648,15 @@
}
*/
if ((currentMesh.amt != null) && (currentMesh.amt.type > 0)) { // CCM Deactivate, CCM or ACM activation
- x += '';
+ x += '';
}
}
if ((currentMesh.mtype == 2) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 4096) == 0))) {
- x += '';
+ x += '';
x += '';
}
if ((currentMesh.mtype == 3) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 4096) == 0))) {
- x += '';
+ x += '';
}
if (currentMesh.amt && (currentMesh.amt.type > 2) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 4096) == 0))) { // ACM activation or Full Automatic
x += '';
@@ -14927,7 +14795,7 @@
function meshImportDeviceList() {
if (xxdialogMode) return;
var x = "Import a list of local Intel® AMT devices in MeshCommander JSON format." + '
';
- setModalContent('xxAddAgent', 'Import Intel® AMT Devices', x);
+ setModalContent('xxAddAgent', "Import Intel® AMT Devices", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => meshImportDeviceListEx());
QE('idx_dlgOkButton', false);
}
@@ -14943,7 +14811,7 @@
try {
j = JSON.parse(r.target.result);
} catch (ex) {
- setModalContent('xxAddAgent', 'Import Intel® AMT Devices', format("Invalid JSON file: {0}.", ex));
+ setModalContent('xxAddAgent', "Import Intel® AMT Devices", format("Invalid JSON file: {0}.", ex));
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return;
}
@@ -14962,10 +14830,10 @@
}
}
if (ok == 0) {
- setModalContent('xxAddAgent', 'User Account Import', 'Unable to import any device.');
+ setModalContent('xxAddAgent', "User Account Import", 'Unable to import any device.');
}
} else {
- setModalContent('xxAddAgent', 'Import Intel® AMT Devices', 'Invalid JSON file format.');
+ setModalContent('xxAddAgent', "Import Intel® AMT Devices", 'Invalid JSON file format.');
}
showModal('xxAddAgentModal', 'idx_dlgOkButton');
};
@@ -14976,10 +14844,10 @@
if (xxdialogMode) return;
var x = '', acmoption = '';
if ((features & 0x100000) != 0) { acmoption = ''; }
- x += addHtmlFormFloating('Type', '')
+ x += addHtmlFormFloating("Type", '')
x += '';
- setModalContent('xxAddAgent', 'Intel® AMT Policy', x);
+ setModalContent('xxAddAgent', "Intel® AMT Policy", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editMeshAmtEx);
if (currentMesh.amt) { Q('dp20amtpolicy').value = currentMesh.amt.type; }
@@ -15002,22 +14870,22 @@
var ptype = Q('dp20amtpolicy').value, x = '';
if ((ptype == 2) || (ptype == 3)) {
var keeppass = ((currentMesh.amt != null) && (currentMesh.amt.password == 1)) ? '' : '';
- x += addHtmlFormFloating('Password', '')
+ x += addHtmlFormFloating("Password", '')
x += '';
- x += addHtmlFormFloating('New password*', '');
- x += addHtmlFormFloating('New password*', '');
+ x += addHtmlFormFloating("New password*", '');
+ x += addHtmlFormFloating("New password*", '');
x += ' ';
- if (ptype == 3) { x += addHtmlFormFloating('CCM mode', ''); }
+ if (ptype == 3) { x += addHtmlFormFloating("CCM mode", ''); }
x += '';
- x += addHtmlFormFloating('Unknown password', '');
+ x += addHtmlFormFloating("Unknown password", '');
x += ' ';
- if ((features & 0x400) == 0) { x += addHtmlFormFloating('CIRA setup', ''); }
+ if ((features & 0x400) == 0) { x += addHtmlFormFloating("CIRA setup", ''); }
x += ' ' + "* 8 characters, 1 upper, 1 lower, 1 numeric, 1 non-alpha numeric." + '';
if ((currentMesh.mtype == 2) && (ptype == 2)) { x += ' ' + "This policy will not impact devices with Intel® AMT in ACM mode." + ''; }
}
- if (ptype == 0) { x = '
When this policy is selected, Intel® AMT is not managed by this server. Intel AMT can still be used by manually activating and configuring it. '; }
- if (ptype == 1) { x = '
When this policy is selected, any Intel® AMT in Client Control Mode (CCM) will be deactivated. Other devices will have CIRA cleared and can still be managed manually. '; }
- if (ptype == 4) { x = '
This is the recommended policy. Intel® AMT activation and management is completely automated and the server will attempt to make best possible use of hardware management. '; }
+ if (ptype == 0) { x = '
' + "When this policy is selected, Intel® AMT is not managed by this server. Intel AMT can still be used by manually activating and configuring it." + ' '; }
+ if (ptype == 1) { x = '
' + "When this policy is selected, any Intel® AMT in Client Control Mode (CCM) will be deactivated. Other devices will have CIRA cleared and can still be managed manually." + ' '; }
+ if (ptype == 4) { x = '
' + "This is the recommended policy. Intel® AMT activation and management is completely automated and the server will attempt to make best possible use of hardware management." + ' '; }
QH('dp20amtpolicydiv', x);
setTimeout(dp20amtValidatePolicy, 500);
}
@@ -15058,7 +14926,7 @@
if (xxdialogMode) return false;
var x = format("Are you sure you want to delete group {0}? Deleting the device group will also delete all information about devices within this group.", EscapeHtml(currentMesh.name)) + '
';
x += '';
- setModalContent('xxAddAgent', 'Delete Group', x);
+ setModalContent('xxAddAgent', "Delete Group", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
p20showDeleteMeshDialogEx(3, '');
});
@@ -15085,13 +14953,13 @@
if (relayDevices.length == 0) {
// Relay relay devices available
x = "No relay devices available.";
- setModalContent('xxAddAgent', 'Edit Device Group', "No relay devices available.");
+ setModalContent('xxAddAgent', "Edit Device Group", "No relay devices available.");
showModal('xxAddAgentModal', 'idx_dlgOkButton');
} else {
var relayDevices2 = [];
for (var i in relayDevices) { relayDevices2.push(''); }
var x = addHtmlFormFloating("Relay Device", '');
- setModalContent('xxAddAgent', 'Edit Device Group', x);
+ setModalContent('xxAddAgent', "Edit Device Group", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editmeshrelayEx);
}
}
@@ -15103,15 +14971,15 @@
function p20editmesh(focus) {
if (xxdialogMode) return;
var x = '';
- x += '';
- x += '';
+ x += '';
+ x += '';
x += ' ';
x += '';
- x += '';
- x += '';
+ x += '';
+ x += '';
x += ' ';
- setModalContent('xxAddAgent', 'Edit Device Group', x);
+ setModalContent('xxAddAgent', "Edit Device Group", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editmeshEx);
Q('dp20meshname').value = currentMesh.name;
@@ -15209,7 +15077,7 @@
}
}
- setModalContent('xxAddAgent', 'Edit Device Group Features', x);
+ setModalContent('xxAddAgent', "Edit Device Group Features", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editmeshfeaturesEx);
p20editmeshfeaturesValidate();
}
@@ -15345,7 +15213,7 @@
if (userid == null) {
xxdialogButtons = 3; xxdialogTag = '';
- setModalContent('xxAddAgent', 'Add Users to Device Group', x);
+ setModalContent('xxAddAgent', "Add Users to Device Group", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () {
p20showAddMeshUserDialogEx(xxdialogButtons, xxdialogTag);
});
@@ -15713,7 +15581,7 @@
x += addHtmlValue("Permissions", r.join(", "));
if (((userinfo._id) != xuserid) && (cmeshrights == 0xFFFFFFFF || (((cmeshrights & 2) != 0) && (meshrights != 0xFFFFFFFF)))) buttons += 4;
- setModalContent('xxAddAgent', 'Device Group User', x);
+ setModalContent('xxAddAgent', "Device Group User", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p20viewuserEx(buttons, xuserid));
}
}
@@ -15725,10 +15593,10 @@
if (usergroups && usergroups[userid]) { uname = usergroups[userid].name; }
if (userinfo._id == userid) { uname = userinfo.name; }
if (userid.startsWith('user/')) {
- setModalContent('xxAddAgent', 'Remove User Permissions', format("Confirm removal of rights for user \"{0}\"?", EscapeHtml(decodeURIComponent(uname))));
+ setModalContent('xxAddAgent', "Remove User Permissions", format("Confirm removal of rights for user \"{0}\"?", EscapeHtml(decodeURIComponent(uname))));
}
if (userid.startsWith('ugrp/')) {
- setModalContent('xxAddAgent', 'Remove User Group Permissions', format("Confirm removal of rights for user group \"{0}\"?", EscapeHtml(decodeURIComponent(uname))), userid);
+ setModalContent('xxAddAgent', "Remove User Group Permissions", format("Confirm removal of rights for user group \"{0}\"?", EscapeHtml(decodeURIComponent(uname))), userid);
}
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p20viewuserEx2(3, userid));
}
@@ -15760,7 +15628,7 @@
x += '';
x += addHtmlFormFloating("Installation Type", '');
x += ' ';
- setModalContent('xxAddAgent', 'Invite Codes', x);
+ setModalContent('xxAddAgent', "Invite Codes", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editmeshInviteCodeEx);
if (currentMesh.invite != null) {
Q('agentJoinCheck').checked = true;
@@ -15775,7 +15643,7 @@
x += ' ';
x += addHtmlValue("Invite Codes", currentMesh.invite.codes.join(', '));
x += addHtmlValue("Installation Type", ["Background and interactive", "Interactive only", "Background only"][currentMesh.invite.flags & 3]);
- setModalContent('xxAddAgent', 'Invite Codes', x);
+ setModalContent('xxAddAgent', "Invite Codes", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton');
}
}
@@ -15826,7 +15694,7 @@
x += '';
}
- setModalContent('xxAddAgent', 'Notification Settings', x);
+ setModalContent('xxAddAgent', "Notification Settings", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', p20editMeshNotifyEx);
Q('p20notifyIntelDeviceConnect').checked = (meshNotify & 2);
@@ -16136,7 +16004,7 @@
}
function p5showPublicLink(u) {
- setModalContent('xxAddAgent', 'Public Link', ' ');
+ setModalContent('xxAddAgent', "Public Link", ' ');
showModal('xxAddAgentModal', 'idx_dlgOkButton');
return false;
}
@@ -16181,7 +16049,7 @@
function p5folderup(x) { if (x == null) { filetreelocation.pop(); } else { while (filetreelocation.length > x) { filetreelocation.pop(); } } updateFiles(); return false; }
function p5folderset(x) { filetreelocation.push(decodeURIComponent(x)); updateFiles(); return false; }
function p5createfolder() {
- setModalContent('xxAddAgent', 'New Folder', '');
+ setModalContent('xxAddAgent', "New Folder", '');
showModal('xxAddAgentModal', 'idx_dlgOkButton', p5createfolderEx);
focusTextBox('p5renameinput');
p5fileNameCheck();
@@ -16189,7 +16057,7 @@
function p5createfolderEx() { meshserver.send({ action: 'fileoperation', fileop: 'createfolder', path: filetreelocation, newfolder: Q('p5renameinput').value }); }
function p5deletefile() {
var cc = getFileSelCount(), rec = (getFileSelDirCount() > 0) ? '
' : '';
- setModalContent('xxAddAgent', 'Delete', (cc > 1) ? (format("Delete {0} selected items?", cc) + rec) : ("Delete selected item?" + rec));
+ setModalContent('xxAddAgent', "Delete", (cc > 1) ? (format("Delete {0} selected items?", cc) + rec) : ("Delete selected item?" + rec));
showModal('xxAddAgentModal', 'idx_dlgOkButton', p5deletefileEx);
}
function p5deletefileEx() { var delfiles = [], checkboxes = document.getElementsByName('fc'); for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].checked) { delfiles.push(checkboxes[i].value); } } meshserver.send({ action: 'fileoperation', fileop: 'delete', path: filetreelocation, delfiles: delfiles, rec: Q('p5recdeleteinput').checked }); }
@@ -16198,7 +16066,7 @@
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].checked) { renamefile = checkboxes[i].value; }
}
- setModalContent('xxAddAgent', 'Rename', '');
+ setModalContent('xxAddAgent', "Rename", '');
showModal('xxAddAgentModal', 'idx_dlgOkButton', p5renamefileEx);
focusTextBox('p5renameinput'); p5fileNameCheck();
}
@@ -16206,7 +16074,7 @@
function p5fileNameCheck(e) { var x = isFilenameValid(Q('p5renameinput').value); QE('idx_dlgOkButton', x); if ((x == true) && (e && e.keyCode == 13)) { dialogclose(1); } }
var isFilenameValid = (function () { var x1 = /^[^\\/:\*\?"<>\|]+$/, x2 = /^\./, x3 = /^(nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i; return function isFilenameValid(fname) { return x1.test(fname) && !x2.test(fname) && !x3.test(fname) && (fname[0] != '.'); } })();
function p5uploadFile() {
- setModalContent('xxAddAgent', 'Upload File', '
|