Improved recordings panel.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-31 12:03:35 -07:00
parent ee39165ea3
commit 2a9dcfbc26

View File

@ -11984,11 +11984,16 @@
var p52recordings = null; var p52recordings = null;
function updateRecordings() { function updateRecordings() {
// Save the list of currently checked recordings // 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); } } 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 // 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"; x += '<th>' + "Session" + '<th style=width:110px>' + nobreak("Start Time") + '<th style=width:110px>' + "Duration" + '<th style=width:110px>' + "Size";
if (p52recordings != null) { if (p52recordings != null) {
var recdate = null; var recdate = null;
@ -11999,6 +12004,7 @@
} }
} }
x += '</table>'; x += '</table>';
}
QH('p52recordings', x); QH('p52recordings', x);
// Re-check recordings // Re-check recordings