CC-3174 : showbuilder

adding timeout for the now playing song, as well as polling every 20 seconds.
This commit is contained in:
Naomi Aro 2012-03-02 18:16:44 +01:00
parent f4fac98221
commit 59b7f4ab56
2 changed files with 1 additions and 4 deletions

View File

@ -296,7 +296,6 @@ 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.
/*
tr = tableDiv.find("tr.sb-now-playing");
if (tr.length > 0) {
var oTable = $('#show_builder_table').dataTable(),
@ -306,8 +305,6 @@ var AIRTIME = (function(AIRTIME){
oTable.fnDraw();
}, aData.refresh * 1000); //need refresh in milliseconds
}
*/
},
"fnHeaderCallback": function(nHead) {
$(nHead).find("input[type=checkbox]").attr("checked", false);

View File

@ -155,5 +155,5 @@ $(document).ready(function(){
setInterval(function(){
var oTable = $('#show_builder_table').dataTable();
oTable.fnDraw();
}, 10 * 1000); //need refresh in milliseconds
}, 20 * 1000); //need refresh in milliseconds
});