1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-05-08 20:28:17 +00:00

fix errors if there's no track

This commit is contained in:
Franzi 2021-11-20 09:22:16 +01:00
parent bdf7281b74
commit a4ad26ac0b
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -49,10 +49,14 @@ function update_lower_third() {
if (current_talk) {
$('#title').text(current_talk['title']);
$('#speaker').text(current_talk['persons'].join(', '));
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
} else {
$('#title').text('Currently no talk');
$('#speaker').text('');
}
if (current_talk && current_talk['track']) {
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
} else {
$('#box').css('border-bottom', 'none');
}
}