From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 07:07:27 +0000 (+0200) Subject: rec: show/hide connection error/status without jquery X-Git-Tag: rec-4.8.0-alpha1~65^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0770686412e041a251f033c721225b95eddc1c6f;p=thirdparty%2Fpdns.git rec: show/hide connection error/status without jquery --- diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index 19bf4c554b..08bc751cba 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -157,12 +157,12 @@ function startup() { var connectionOK = function (ok, o) { if (ok) { - $("#connection-status").hide(); - $("#connection-error").html(""); - $("#content-hidden-on-load").show(); + document.querySelector("#connection-status").style.display = "none"; + document.querySelector("#connection-error").innerHTML = ""; + document.querySelector("#content-hidden-on-load").style.display = "inherit"; } else { - $("#connection-status").show(); - $("#connection-error").html(o.status + " " + o.statusText); + document.querySelector("#connection-status").style.display = "inherit"; + document.querySelector("#connection-error").innerHTML = o.status + " " + o.statusText; } };