From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 07:10:51 +0000 (+0200) Subject: rec: bind event handler without jquery X-Git-Tag: rec-4.8.0-alpha1~65^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5998290783c695e7990fdfef7d315182be682fc0;p=thirdparty%2Fpdns.git rec: bind event handler without jquery Also remove reference to not-existing filter2 checkbox. --- diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index b11c986b02..97f301d7d4 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -227,8 +227,7 @@ function startup() { updateRingBuffers(); } - $("#filter1").click(updateRingBuffers); - $("#filter2").click(updateRingBuffers); + document.querySelector("#filter1").addEventListener('click', updateRingBuffers); update(); setInterval(update, 1000);