CC-3174 : showbuilder

adding back polling.
This commit is contained in:
Naomi Aro 2012-03-02 17:25:44 +01:00
parent 29b03c1181
commit f4fac98221
2 changed files with 7 additions and 0 deletions

View File

@ -296,6 +296,7 @@ var AIRTIME = (function(AIRTIME){
} }
//if the now playing song is visible set a timeout to redraw the table at the start of the next song. //if the now playing song is visible set a timeout to redraw the table at the start of the next song.
/*
tr = tableDiv.find("tr.sb-now-playing"); tr = tableDiv.find("tr.sb-now-playing");
if (tr.length > 0) { if (tr.length > 0) {
var oTable = $('#show_builder_table').dataTable(), var oTable = $('#show_builder_table').dataTable(),
@ -305,6 +306,7 @@ var AIRTIME = (function(AIRTIME){
oTable.fnDraw(); oTable.fnDraw();
}, aData.refresh * 1000); //need refresh in milliseconds }, aData.refresh * 1000); //need refresh in milliseconds
} }
*/
}, },
"fnHeaderCallback": function(nHead) { "fnHeaderCallback": function(nHead) {

View File

@ -151,4 +151,9 @@ $(document).ready(function(){
AIRTIME.showbuilder.fnServerData.end = oRange.end; AIRTIME.showbuilder.fnServerData.end = oRange.end;
AIRTIME.showbuilder.builderDataTable(); AIRTIME.showbuilder.builderDataTable();
setInterval(function(){
var oTable = $('#show_builder_table').dataTable();
oTable.fnDraw();
}, 10 * 1000); //need refresh in milliseconds
}); });