From: hadeshyp Date: Sun, 4 Nov 2012 22:10:19 +0000 (+0000) Subject: Slower refresh after connection error X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a4af0b11e95237df46db3c7d0fe13d6bb8395eb8;p=daqtools.git Slower refresh after connection error --- 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?");
 }