From 018c88d12a3e76851426e85484abf0373dd470b6 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 15 May 2013 16:43:58 -0400 Subject: [PATCH] CC-5063: "Nothing Scheduled" appears between 2 scheduled tracks -fixed --- airtime_mvc/public/js/airtime/dashboard/dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")+""); } }