diff --git a/airtime_mvc/public/js/airtime/dashboard/dashboard.js b/airtime_mvc/public/js/airtime/dashboard/dashboard.js index 38d357523..3299d9305 100644 --- a/airtime_mvc/public/js/airtime/dashboard/dashboard.js +++ b/airtime_mvc/public/js/airtime/dashboard/dashboard.js @@ -81,7 +81,7 @@ function updateProgressBarValue(){ songElapsedTime = estimatedSchedulePosixTime - currentSong.songStartPosixTime; if (songPercentDone < 0 || songPercentDone > 100){ songPercentDone = 0; - currentSong = null; + //currentSong = null; } else { 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"); @@ -95,7 +95,7 @@ function updateProgressBarValue(){ } $('#progress-show').attr("class", "progress-show"); } - } else { + } else if (nextSong == null) { scheduled_play_source = false; scheduled_play_line_to_switch.attr("class", "line-to-switch off"); scheduled_play_div.removeClass("ready"); @@ -159,7 +159,7 @@ function updatePlaybar(){ } else { $('#current').html($.i18n._("Current")+": "+$.i18n._("Live Stream")+""); } - } else { + } else if (nextSong == null) { $('#current').html($.i18n._("Current")+": "+$.i18n._("Nothing Scheduled")+""); } }