From 59b7f4ab56e5b0df73fd23b0425444ed6455196e Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Fri, 2 Mar 2012 18:16:44 +0100 Subject: [PATCH] CC-3174 : showbuilder adding timeout for the now playing song, as well as polling every 20 seconds. --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 3 --- airtime_mvc/public/js/airtime/showbuilder/main_builder.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index c99fc91b5..74b3b18b3 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -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); diff --git a/airtime_mvc/public/js/airtime/showbuilder/main_builder.js b/airtime_mvc/public/js/airtime/showbuilder/main_builder.js index 10fcbd89e..4a0af1638 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/main_builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/main_builder.js @@ -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 }); \ No newline at end of file