CC-4640: Automatically jump to current song when loading the Now Playing page.

-added check to see if a show is currently playing
This commit is contained in:
denise 2012-10-29 15:40:58 -04:00
parent 332f9993c0
commit d97afabaea
1 changed files with 3 additions and 1 deletions

View File

@ -649,7 +649,9 @@ var AIRTIME = (function(AIRTIME){
},
"fnDrawCallback": function fnBuilderDrawCallback(oSettings, json) {
if (!isInitialized) {
mod.jumpToCurrentTrack();
if ($(this).find("."+NOW_PLAYING_CLASS).length > 0) {
mod.jumpToCurrentTrack();
}
}
isInitialized = true;