CC-2162: WADR Widget "There is an error in current show timing"
This commit is contained in:
parent
12a0e34024
commit
eed8c95343
|
@ -89,10 +89,18 @@
|
||||||
|
|
||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var sd;
|
var sd = null;
|
||||||
getServerData();
|
getServerData();
|
||||||
|
|
||||||
|
//refresh the UI to update the elapsed/remaining time
|
||||||
|
setInterval(updateWidget, 1000);
|
||||||
|
|
||||||
function updateWidget(){
|
function updateWidget(){
|
||||||
|
|
||||||
|
if (sd == null){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var currentShow = sd.getCurrentShow();
|
var currentShow = sd.getCurrentShow();
|
||||||
var nextShows = sd.getNextShows();
|
var nextShows = sd.getNextShows();
|
||||||
|
|
||||||
|
@ -126,14 +134,10 @@
|
||||||
"</li>" +
|
"</li>" +
|
||||||
"<li class='next'>"+options.text.next+": "+nextShowName+"<span>"+nextShowRange+"</span></li>" +
|
"<li class='next'>"+options.text.next+": "+nextShowName+"<span>"+nextShowRange+"</span></li>" +
|
||||||
"</ul>");
|
"</ul>");
|
||||||
|
|
||||||
//refresh the UI to update the elapsed/remaining time
|
|
||||||
setTimeout(updateWidget, 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function processData(data){
|
function processData(data){
|
||||||
sd = new ScheduleData(data);
|
sd = new ScheduleData(data);
|
||||||
updateWidget();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function airtimeScheduleJsonpError(jqXHR, textStatus, errorThrown){
|
function airtimeScheduleJsonpError(jqXHR, textStatus, errorThrown){
|
||||||
|
|
Loading…
Reference in New Issue