aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/javascript/mauve_utils.js9
1 files changed, 9 insertions, 0 deletions
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;
}