diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-19 11:58:25 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-19 11:58:25 +0100 |
commit | cdd1b094b27960595a8750247c5b2f2576cd5872 (patch) | |
tree | 9c4661b8008593b8df9541a984302f46c2c11820 /static/javascript/mauve_utils.js | |
parent | 5fac7af657afccb5ef2dc887b4312e0a9b8f4969 (diff) |
rejigged JS reloading of alerts table.
Diffstat (limited to 'static/javascript/mauve_utils.js')
-rw-r--r-- | static/javascript/mauve_utils.js | 9 |
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; } |