From 3d688c7d83821ea65cc439488830068e6cd6c3f5 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 30 May 2013 05:57:20 +0100 Subject: [PATCH] Revert "reduce refresh to 5sec" This reverts commit 8ea9ec7dd9422d7cd17a85119b5b46ca0be4d030. --- Netdisco/share/views/js/admintask.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Netdisco/share/views/js/admintask.js b/Netdisco/share/views/js/admintask.js index 5dd9997f..a8ac096c 100644 --- a/Netdisco/share/views/js/admintask.js +++ b/Netdisco/share/views/js/admintask.js @@ -10,13 +10,18 @@ // but which cannot use jQuery delegation via .on() function inner_view_processing(tab) { - // reload this table every 5 seconds + // reload this table every 10 seconds if (tab == 'jobqueue') { - $('#nd_device-name').text('5'); - nd_timers.push(setTimeout(function() { $('#nd_device-name').text('4') }, 1000 )); - nd_timers.push(setTimeout(function() { $('#nd_device-name').text('3') }, 2000 )); - nd_timers.push(setTimeout(function() { $('#nd_device-name').text('2') }, 3000 )); - nd_timers.push(setTimeout(function() { $('#nd_device-name').text('1') }, 4000 )); + $('#nd_device-name').text('10'); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('9') }, 1000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('8') }, 2000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('7') }, 3000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('6') }, 4000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('5') }, 5000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('4') }, 6000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('3') }, 7000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('2') }, 8000 )); + nd_timers.push(setTimeout(function() { $('#nd_device-name').text('1') }, 9000 )); nd_timers.push(setTimeout(function() { // clear any running timers for (var i = 0; i < nd_timers.length; i++) { @@ -24,7 +29,7 @@ } // reload the tab content $('#' + tab + '_form').trigger('submit'); - }, 5000)); + }, 10000)); } // activate typeahead on the topo boxes