]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Slower refresh after connection error
authorhadeshyp <hadeshyp>
Sun, 4 Nov 2012 22:10:19 +0000 (22:10 +0000)
committerhadeshyp <hadeshyp>
Sun, 4 Nov 2012 22:10:19 +0000 (22:10 +0000)
cts/htdocs/scripts/base.js

index 9a0b14681dcddad6f77dd94bf7d5ca8b1533dee8..7910410ea8ca3ac96f12dae38306ef58fc78ea20 100644 (file)
@@ -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(/<pre>([\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?");
 }