From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 07:17:02 +0000 (+0200) Subject: rec: use Array.forEach instead of jquery.each X-Git-Tag: rec-4.8.0-alpha1~65^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e33cbc169dfaddcc1a6225e7a186b00fb46a7645;p=thirdparty%2Fpdns.git rec: use Array.forEach instead of jquery.each --- diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index 97f301d7d4..f514c4e333 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -95,7 +95,7 @@ function startup() { var num = 0; var total = 0, rest = 0; var rows = []; - $.each(data["entries"], function (a, b) { + data["entries"].forEach((b) => { total += b[0]; if (num++ > 10) { rest += b[0]; @@ -174,8 +174,8 @@ function startup() { connectionOK(true); var data = {}; - $.each(adata, function (key, val) { - data[val.name] = val.value; + adata.forEach((statItem) => { + data[statItem.name] = statItem.value; }); if (!gdata["sys-msec"])