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)
This commit is contained in:
martin 2011-04-14 00:45:20 -04:00
parent 33b24b581c
commit ac3853c0fb
1 changed files with 1 additions and 1 deletions

View File

@ -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");