From ac3853c0fbc9c802b52c0e3c5778b64ff6d577f4 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 14 Apr 2011 00:45:20 -0400 Subject: [PATCH] CC-2175: Overbooking: Cut off shows when they are done -on-air light now turns off when show finishes before a song is able to finish. (before waited until song completed) --- public/js/playlist/playlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/playlist/playlist.js b/public/js/playlist/playlist.js index a72e94dc2..eff1dfc42 100644 --- a/public/js/playlist/playlist.js +++ b/public/js/playlist/playlist.js @@ -85,7 +85,7 @@ function updateProgressBarValue(){ songPercentDone = 0; currentSong = new Array(); } else { - if (currentSong[0].media_item_played == "t") + if (currentSong[0].media_item_played == "t" && currentShow.length > 0) $('#on-air-info').attr("class", "on-air-info on"); else $('#on-air-info').attr("class", "on-air-info off");