X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=testing%2FMCTXWeb%2Fpublic_html%2Fstatic%2Fmctx.gui.js;h=247484d77f4087421ebd0c5e36b627627a12fd36;hb=218c2d77e10b28315864990acbcf55ffe26a76e9;hp=82f823cccebac137c102c43099cc253c87d3d082;hpb=bda41ea25e069e422578d2f2cfaee49f0e2cbdc9;p=matches%2FMCTX3420.git diff --git a/testing/MCTXWeb/public_html/static/mctx.gui.js b/testing/MCTXWeb/public_html/static/mctx.gui.js index 82f823c..247484d 100644 --- a/testing/MCTXWeb/public_html/static/mctx.gui.js +++ b/testing/MCTXWeb/public_html/static/mctx.gui.js @@ -188,9 +188,15 @@ $.fn.setErrorLog = function () { var updater = function () { $.ajax({url : url}).done(function (data) { outdiv.text(data); + outdiv.scrollTop( + outdiv[0].scrollHeight - outdiv.height() + ); 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); }); };