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

index 7910410ea8ca3ac96f12dae38306ef58fc78ea20..51dd522ead00a69c5515386ffce1df903bee07ef 100644 (file)
@@ -185,10 +185,10 @@ var CTS = new Class({
             
          onFailure:    function(xhr) {
             window.clearTimeout(manualTimeout);
+            xhrFailure(xhr);
             this.dataUpdate.delay(5000, this);
             dup.addClass('error').set('text', 'Update failed').setStyle('display', 'block');
             $('status-indicator').set('class', 'error');
-            xhrFailure(xhr);
          }.bind(this)
       }).send();
    },