From cee435ab440bf4ced219625af3a47788f1b59852 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 09:08:42 +0200 Subject: [PATCH] rec: read filter1 checkbox without jquery --- pdns/recursordist/html/local.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index 08bc751cba..b11c986b02 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -113,19 +113,20 @@ function startup() { }; function updateRingBuffers() { - get_json('jsonstat', jsonstatParams('get-query-ring', 'queries', $("#filter1").is(':checked'))).then( + const filterChecked = document.querySelector("#filter1").checked; + get_json('jsonstat', jsonstatParams('get-query-ring', 'queries', filterChecked)).then( function (data) { var rows = makeRingRows(data); render('queryring', {rows: rows}); }); - get_json('jsonstat', jsonstatParams('get-query-ring', 'servfail-queries', $("#filter1").is(':checked'))).then( + get_json('jsonstat', jsonstatParams('get-query-ring', 'servfail-queries', filterChecked)).then( function (data) { var rows = makeRingRows(data); render('servfailqueryring', {rows: rows}); }); - get_json('jsonstat', jsonstatParams('get-query-ring', 'bogus-queries', $("#filter1").is(':checked'))).then( + get_json('jsonstat', jsonstatParams('get-query-ring', 'bogus-queries', filterChecked)).then( function (data) { var rows = makeRingRows(data); render('bogusqueryring', {rows: rows}); -- 2.47.2