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

index 08bc751cba828f970dd37e072383a27492cf2008..b11c986b02cb051f4d47b66d022715bdaba0902f 100644 (file)
@@ -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});