From 334aa01056f199123e81f5bff44dbdb998562fdf Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 19 Aug 2011 10:48:59 +0100 Subject: Added last updated at to alerts page. Fixes #1831. * Also upped timeouts from 5s to 30s for ajax list refreshes. --- static/javascript/mauve_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/javascript/mauve_utils.js b/static/javascript/mauve_utils.js index cd0d52b..38af0cc 100644 --- a/static/javascript/mauve_utils.js +++ b/static/javascript/mauve_utils.js @@ -141,7 +141,7 @@ function updateAlertsTable(alert_type, group_by) { $.ajax( { url: '/ajax/alerts_table/'+alert_type+'/'+group_by, - timeout: 5000, + timeout: 30000, success: function( data ) { if ( "" == data || null == data ) { showError("No data returned by web server when updating alerts table.", "updateAlertsTable"); @@ -169,7 +169,7 @@ function updateAlertsTable(alert_type, group_by) { function updateAlertCounts() { $.ajax( { url: '/ajax/alert_counts', - timeout: 5000, + timeout: 30000, success: function(counts) { if ( "" == counts || null == counts) { showError("No data returned by web server when updating alert counts.", "updateAlertCounts"); -- cgit v1.2.1