CC-3403 : Replace Now Playing with the new Timeline screen

This commit is contained in:
Naomi Aro 2012-03-12 14:23:03 +01:00
parent 3b32a16813
commit f28f6659dc
6 changed files with 96 additions and 26 deletions

View file

@ -346,13 +346,16 @@ var AIRTIME = (function(AIRTIME){
}
//current song is not set, set a timeout to refresh when the first item on the timeline starts.
else {
tr = tableDiv.find("tbody tr:first");
aData = tr.data("aData");
tr = tableDiv.find("tbody tr.sb-allowed.sb-header:first");
AIRTIME.showbuilder.timeout = setTimeout(function(){
AIRTIME.showbuilder.resetTimestamp();
oTable.fnDraw();
}, aData.timeUntil * 1000); //need refresh in milliseconds
if (tr.length > 0) {
aData = tr.data("aData");
AIRTIME.showbuilder.timeout = setTimeout(function(){
AIRTIME.showbuilder.resetTimestamp();
oTable.fnDraw();
}, aData.timeUntil * 1000); //need refresh in milliseconds
}
}
},
"fnHeaderCallback": function(nHead) {