Ensure error log tries to update even on failure
authorJeremy Tan <[email protected]>
Mon, 30 Sep 2013 02:53:56 +0000 (10:53 +0800)
committerJeremy Tan <[email protected]>
Mon, 30 Sep 2013 02:53:56 +0000 (10:53 +0800)
testing/MCTXWeb/public_html/static/mctx.gui.js

index 606c0be..247484d 100644 (file)
@@ -193,7 +193,10 @@ $.fn.setErrorLog = function () {
       );
       setTimeout(updater, 1000);
     }).fail(function (jqXHR) {
-      outdiv.text("Failed to retrieve the error log.");
+      if (jqXHR.status === 502 || jqXHR.status === 0) {
+        outdiv.text("Failed to retrieve the error log.");
+      }
+      setTimeout(updater, 1500);
     });
   };
   

UCC git Repository :: git.ucc.asn.au