mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-22 11:01:03 +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) {
|
if (current_talk) {
|
||||||
$('#title').text(current_talk['title']);
|
$('#title').text(current_talk['title']);
|
||||||
$('#speaker').text(current_talk['persons'].join(', '));
|
$('#speaker').text(current_talk['persons'].join(', '));
|
||||||
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
|
|
||||||
} else {
|
} else {
|
||||||
$('#title').text('Currently no talk');
|
$('#title').text('Currently no talk');
|
||||||
$('#speaker').text('');
|
$('#speaker').text('');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (current_talk && current_talk['track']) {
|
||||||
|
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
|
||||||
|
} else {
|
||||||
$('#box').css('border-bottom', 'none');
|
$('#box').css('border-bottom', 'none');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue