]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: read handlebar templates without $()
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:04:11 +0000 (09:04 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:23:53 +0000 (09:23 +0200)
pdns/recursordist/html/local.js

index 90ce90effec42b200a5329f529117a6c790d2c40..19bf4c554b46f730e6207b7cf0a5829c40a23b89 100644 (file)
@@ -25,7 +25,7 @@ function get_json(url, params) {
 
 function startup() {
     var getTemplate = function (name) {
-        var template = $('#' + name + '-template').html();
+        const template = document.querySelector(`#${name}-template`).innerHTML;
         return Handlebars.compile(template);
     };
     var cachedTemplates = {};