mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-12-22 13:59:12 +00:00
fix errors if there's no track
This commit is contained in:
parent
bdf7281b74
commit
a4ad26ac0b
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue