Fixed internalization.
Ylian Saint-Hilaire committed
Feb 5, 2020 at 15:41 UTC
4639b11a14a7e79cefe2372f5e1317439e74b44a
3 files changed
+6
-4
sample-config.json
+1
-1
@@ -140,7 +140,7 @@
140
},
141
"_letsencrypt": {
142
"__comment__": "Requires NodeJS 10.12 or better, Go to https://letsdebug.net/ first before trying Let's Encrypt.",
143
- "email": "myemail@myserver.com ",
143
+ "email": "myemail@myserver.com",
144
"names": "myserver.com,customer1.myserver.com",
145
"rsaKeySize": 3072,
146
"production": false
views/agentinvite.handlebars
+2
-1
@@ -147,7 +147,7 @@
147
var groupName = decodeURIComponent('{{{meshname}}}');
148
if (groupName != '') {
149
QH('groupname', format("Remote Agent Installation for {0}", groupName));
150
- document.title = format("{0} - Agent Installation");
150
+ document.title = format("{0} - Agent Installation", groupName);
151
} else {
152
document.title = "Agent Installation";
153
}
@@ -296,6 +296,7 @@
296
function copyToClipLinuxInstall() { copyTextToClip(linuxInstall); }
297
function copyToClipLinuxUnInstall() { copyTextToClip(linuxUnInstall); }
298
function copyTextToClip(txt) { function selectElementText(e) { if (document.selection) { var range = document.body.createTextRange(); range.moveToElementText(e); range.select(); } else if (window.getSelection) { var range = document.createRange(); range.selectNode(e); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); } } var e = document.createElement('DIV'); e.textContent = txt; document.body.appendChild(e); selectElementText(e); document.execCommand('copy'); e.remove(); }
299
+ function format(format) { var args = Array.prototype.slice.call(arguments, 1); return format.replace(/{(\d+)}/g, function (match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };
300
301
</script>
302
</body>
views/default.handlebars
+3
-2
@@ -8786,6 +8786,7 @@
8786
8787
function p3showDownloadEventsDialog(mode) {
8788
if (xxdialogMode) return;
8789
+ console.log('p3showDownloadEventsDialog');
8790
var x = "Download the list of events with one of the file formats below." + '<br /><br />';
8791
x += addHtmlValue("CSV Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogCSV(' + mode + ')">' + "eventslist.csv" + '</a>');
8792
x += addHtmlValue("JSON Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogJSON(' + mode + ')">' + "eventslist.json" + '</a>');
@@ -8809,7 +8810,7 @@
8810
if (mode == 2) { eventList = events; }
8811
if (mode == 3) { eventList = currentUserEvents; }
8812
for (var i in eventList) { r.push(events[i]); }
8812
- saveAs(new Blob([JSON.stringify(r)], { type: 'application/octet-stream' }), "eventslist.json");
8813
+ saveAs(new Blob([JSON.stringify(r, null, 2)], { type: 'application/octet-stream' }), "eventslist.json");
8814
return false;
8815
}
8816
@@ -9036,7 +9037,7 @@
9037
function p4downloadUserInfoJSON() {
9038
var r = []
9039
for (var i in users) { r.push(users[i]); }
9039
- saveAs(new Blob([JSON.stringify(r)], { type: 'application/octet-stream' }), "userlist.json");
9040
+ saveAs(new Blob([JSON.stringify(r, null, 2)], { type: 'application/octet-stream' }), "userlist.json");
9041
return false;
9042
}
9043