]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: set template output without jquery
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:19:14 +0000 (09:19 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:23:53 +0000 (09:23 +0200)
pdns/recursordist/html/local.js

index f514c4e333b4bb7331561250aaa30020596eafcd..5512a983ced8bce162ef5a65305b5ebfa551751b 100644 (file)
@@ -35,8 +35,8 @@ function startup() {
             t = getTemplate(name);
             cachedTemplates[name] = t;
         }
-        var h = t(ctx);
-        $('#' + name).html(h);
+        const html = t(ctx);
+        document.querySelector('#' + name).innerHTML = html;
     };
 
     var qpsgraph = new Rickshaw.Graph({