From 0770686412e041a251f033c721225b95eddc1c6f Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 09:07:27 +0200 Subject: [PATCH] rec: show/hide connection error/status without jquery --- pdns/recursordist/html/local.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } }; -- 2.47.2