CC-5063:
"Nothing Scheduled" appears between 2 scheduled tracks -fixed
This commit is contained in:
parent
148e1b9e46
commit
018c88d12a
|
@ -81,7 +81,7 @@ function updateProgressBarValue(){
|
||||||
songElapsedTime = estimatedSchedulePosixTime - currentSong.songStartPosixTime;
|
songElapsedTime = estimatedSchedulePosixTime - currentSong.songStartPosixTime;
|
||||||
if (songPercentDone < 0 || songPercentDone > 100){
|
if (songPercentDone < 0 || songPercentDone > 100){
|
||||||
songPercentDone = 0;
|
songPercentDone = 0;
|
||||||
currentSong = null;
|
//currentSong = null;
|
||||||
} else {
|
} else {
|
||||||
if ((currentSong.media_item_played == true && currentShow.length > 0) || (songElapsedTime < 5000 && currentShow[0].record != 1)) {
|
if ((currentSong.media_item_played == true && currentShow.length > 0) || (songElapsedTime < 5000 && currentShow[0].record != 1)) {
|
||||||
scheduled_play_line_to_switch.attr("class", "line-to-switch on");
|
scheduled_play_line_to_switch.attr("class", "line-to-switch on");
|
||||||
|
@ -95,7 +95,7 @@ function updateProgressBarValue(){
|
||||||
}
|
}
|
||||||
$('#progress-show').attr("class", "progress-show");
|
$('#progress-show').attr("class", "progress-show");
|
||||||
}
|
}
|
||||||
} else {
|
} else if (nextSong == null) {
|
||||||
scheduled_play_source = false;
|
scheduled_play_source = false;
|
||||||
scheduled_play_line_to_switch.attr("class", "line-to-switch off");
|
scheduled_play_line_to_switch.attr("class", "line-to-switch off");
|
||||||
scheduled_play_div.removeClass("ready");
|
scheduled_play_div.removeClass("ready");
|
||||||
|
@ -159,7 +159,7 @@ function updatePlaybar(){
|
||||||
} else {
|
} else {
|
||||||
$('#current').html($.i18n._("Current")+": <span style='color:red; font-weight:bold'>"+$.i18n._("Live Stream")+"</span>");
|
$('#current').html($.i18n._("Current")+": <span style='color:red; font-weight:bold'>"+$.i18n._("Live Stream")+"</span>");
|
||||||
}
|
}
|
||||||
} else {
|
} else if (nextSong == null) {
|
||||||
$('#current').html($.i18n._("Current")+": <span style='color:red; font-weight:bold'>"+$.i18n._("Nothing Scheduled")+"</span>");
|
$('#current').html($.i18n._("Current")+": <span style='color:red; font-weight:bold'>"+$.i18n._("Nothing Scheduled")+"</span>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue