Fixed player displaying nothing (instead of Offline) when no show is scheduled

This commit is contained in:
Duncan Sommerville 2015-04-30 14:36:33 -04:00
parent e78bd82c8c
commit 272bb11fcf
1 changed files with 2 additions and 2 deletions

View File

@ -252,8 +252,8 @@
success: function(data) {
if (data.current === null) {
if (data.currentShow != null) {
//Master/show source have no current track but they do have a current show.
if (data.currentShow != null && data.currentShow.length != 0) {
// Master/show source have no current track but they do have a current show.
$("p.now_playing").html(data.currentShow[0].name);
} else {
$("p.now_playing").html("Offline");