class CallListController {
constructor () {
this.div = document.getElementById('callListDiv');
this.transcriptionBGColorA = '#010101';
this.transcriptionBGColorB = '#151515';
this.calls = undefined;
this.group = undefined;
}
updateHtml (calls, group) {
this.calls = calls;
this.group = group;
let html = '
';
html += '| TGID | ' + calls[0]['tg_id'] + ' | ' + calls.length + ' calls | | Tags | ' + calls[0]['tg_tags'] + ' |
'
html += '| Name | ' + calls[0]['tg_name'] + ' | | System | ' + systemMatchMap[calls[0]['system']] + ' |
';
html += '
';
html += '
Playlist Options'
html += '
';
html += 'All ';
html += 'None ';
html += 'Create Playlist ';
html += 'Send to Playlist Builder';
html += ' ';
html += '';
this.div.innerHTML = html;
}
togglePlaylistOptions () {
if (document.getElementById('playlistOptionsSpan').style.display == 'none') {
this.showPlaylistCheckboxes();
document.getElementById('playlistOptionsSpan').style.display = 'block';
} else {
this.hidePlaylistCheckboxes();
document.getElementById('playlistOptionsSpan').style.display = 'none';
}
}
showPlaylistCheckboxes () {
for (let i=0; i