From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 07:04:11 +0000 (+0200) Subject: rec: read handlebar templates without $() X-Git-Tag: rec-4.8.0-alpha1~65^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd65f5190629f1c3fda0c93858cd4733279522c;p=thirdparty%2Fpdns.git rec: read handlebar templates without $() --- diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index 90ce90effe..19bf4c554b 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -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 = {};