From cdd1b094b27960595a8750247c5b2f2576cd5872 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 19 Aug 2011 11:58:25 +0100 Subject: rejigged JS reloading of alerts table. --- static/javascript/mauve_utils.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'static') diff --git a/static/javascript/mauve_utils.js b/static/javascript/mauve_utils.js index 38af0cc..e467b5d 100644 --- a/static/javascript/mauve_utils.js +++ b/static/javascript/mauve_utils.js @@ -149,6 +149,10 @@ function updateAlertsTable(alert_type, group_by) { $('#alerts_table').replaceWith(data); clearError("updateAlertsTable"); updateAlertCounts(); + // + // Schedule next update. + // + setTimeout("updateAlertsTable('"+alert_type+"','"+group_by+"');", 30000); } }, error: function( a,b,c ) { @@ -157,9 +161,14 @@ function updateAlertsTable(alert_type, group_by) { } else { showError("Got "+a.status+" "+a.statusText+" when updating alerts table.", "updateAlertsTable"); } + // + // Schedule next update. + // + setTimeout("updateAlertsTable('"+alert_type+"','"+group_by+"');", 30000); }, }); + return false; } -- cgit v1.2.1