mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 16:03:20 -05:00
Fixed internalization.
This commit is contained in:
parent
fe7d779df6
commit
cddb95a00d
@ -147,7 +147,7 @@
|
|||||||
var groupName = decodeURIComponent('{{{meshname}}}');
|
var groupName = decodeURIComponent('{{{meshname}}}');
|
||||||
if (groupName != '') {
|
if (groupName != '') {
|
||||||
QH('groupname', format("Remote Agent Installation for {0}", groupName));
|
QH('groupname', format("Remote Agent Installation for {0}", groupName));
|
||||||
document.title = format("{0} - Agent Installation");
|
document.title = format("{0} - Agent Installation", groupName);
|
||||||
} else {
|
} else {
|
||||||
document.title = "Agent Installation";
|
document.title = "Agent Installation";
|
||||||
}
|
}
|
||||||
@ -296,6 +296,7 @@
|
|||||||
function copyToClipLinuxInstall() { copyTextToClip(linuxInstall); }
|
function copyToClipLinuxInstall() { copyTextToClip(linuxInstall); }
|
||||||
function copyToClipLinuxUnInstall() { copyTextToClip(linuxUnInstall); }
|
function copyToClipLinuxUnInstall() { copyTextToClip(linuxUnInstall); }
|
||||||
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(); }
|
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(); }
|
||||||
|
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; }); };
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -8786,6 +8786,7 @@
|
|||||||
|
|
||||||
function p3showDownloadEventsDialog(mode) {
|
function p3showDownloadEventsDialog(mode) {
|
||||||
if (xxdialogMode) return;
|
if (xxdialogMode) return;
|
||||||
|
console.log('p3showDownloadEventsDialog');
|
||||||
var x = "Download the list of events with one of the file formats below." + '<br /><br />';
|
var x = "Download the list of events with one of the file formats below." + '<br /><br />';
|
||||||
x += addHtmlValue("CSV Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogCSV(' + mode + ')">' + "eventslist.csv" + '</a>');
|
x += addHtmlValue("CSV Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogCSV(' + mode + ')">' + "eventslist.csv" + '</a>');
|
||||||
x += addHtmlValue("JSON Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogJSON(' + mode + ')">' + "eventslist.json" + '</a>');
|
x += addHtmlValue("JSON Format", '<a href=# style=cursor:pointer onclick="return p3downloadEventsDialogJSON(' + mode + ')">' + "eventslist.json" + '</a>');
|
||||||
@ -8809,7 +8810,7 @@
|
|||||||
if (mode == 2) { eventList = events; }
|
if (mode == 2) { eventList = events; }
|
||||||
if (mode == 3) { eventList = currentUserEvents; }
|
if (mode == 3) { eventList = currentUserEvents; }
|
||||||
for (var i in eventList) { r.push(events[i]); }
|
for (var i in eventList) { r.push(events[i]); }
|
||||||
saveAs(new Blob([JSON.stringify(r)], { type: 'application/octet-stream' }), "eventslist.json");
|
saveAs(new Blob([JSON.stringify(r, null, 2)], { type: 'application/octet-stream' }), "eventslist.json");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9036,7 +9037,7 @@
|
|||||||
function p4downloadUserInfoJSON() {
|
function p4downloadUserInfoJSON() {
|
||||||
var r = []
|
var r = []
|
||||||
for (var i in users) { r.push(users[i]); }
|
for (var i in users) { r.push(users[i]); }
|
||||||
saveAs(new Blob([JSON.stringify(r)], { type: 'application/octet-stream' }), "userlist.json");
|
saveAs(new Blob([JSON.stringify(r, null, 2)], { type: 'application/octet-stream' }), "userlist.json");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user