From a4af0b11e95237df46db3c7d0fe13d6bb8395eb8 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Sun, 4 Nov 2012 22:10:19 +0000 Subject: [PATCH] Slower refresh after connection error --- cts/htdocs/scripts/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cts/htdocs/scripts/base.js b/cts/htdocs/scripts/base.js index 9a0b146..7910410 100644 --- a/cts/htdocs/scripts/base.js +++ b/cts/htdocs/scripts/base.js @@ -185,7 +185,7 @@ var CTS = new Class({ onFailure: function(xhr) { window.clearTimeout(manualTimeout); - this.dataUpdate.delay(1000, this); + this.dataUpdate.delay(5000, this); dup.addClass('error').set('text', 'Update failed').setStyle('display', 'block'); $('status-indicator').set('class', 'error'); xhrFailure(xhr); @@ -669,7 +669,7 @@ var CTS = new Class({ function xhrFailure(xhr){ var m = xhr.responseText.match(/
([\s\S]*)<\/pre>/im);
    if (m) alert("Server send error response:\n"+m[1].trim());
-   else  alert("An unknown error while contacting the sever. Did you open this file locally? Did the connection crash?");
+   else  alert("An unknown error while contacting the sever. Did you open this file locally? Did the connection or server crash?");
 }
 
 
-- 
2.43.0