From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 07:08:42 +0000 (+0200) Subject: rec: read filter1 checkbox without jquery X-Git-Tag: rec-4.8.0-alpha1~65^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cee435ab440bf4ced219625af3a47788f1b59852;p=thirdparty%2Fpdns.git rec: read filter1 checkbox without jquery --- 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});