1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-13 03:21:50 +00:00

Improved recordings panel.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-31 12:03:35 -07:00
parent 087df1a0f9
commit fe0d16ff82

View file

@ -11984,11 +11984,16 @@
var p52recordings = null;
function updateRecordings() {
// Save the list of currently checked recordings
var checkedRecordings = [], elements = document.getElementsByClassName('RecordingCheckbox');
var checkedRecordings = [], elements = document.getElementsByClassName('RecordingCheckbox'), x = '';
for (var i=0;i<elements.length;i++) { if (elements[i].checked) { checkedRecordings.push(elements[i].value); } }
if (p52recordings == null) {
x += '<div style=width:100%;text-align:center;margin-top:20px><i>' + "Loading..." + "</i></div>";
} else if (p52recordings.length == 0) {
x += '<div style=width:100%;text-align:center;margin-top:20px><i>' + "No recordings." + "</i></div>";
} else {
// Display the users using the sorted list
var x = '<table class=p3usersTable cellpadding=0 cellspacing=0>', addHeader = true;
x += '<table class=p3usersTable cellpadding=0 cellspacing=0>', addHeader = true;
x += '<th>' + "Session" + '<th style=width:110px>' + nobreak("Start Time") + '<th style=width:110px>' + "Duration" + '<th style=width:110px>' + "Size";
if (p52recordings != null) {
var recdate = null;
@ -11999,6 +12004,7 @@
}
}
x += '</table>';
}
QH('p52recordings', x);
// Re-check recordings