]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: use Array.forEach instead of jquery.each
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:17:02 +0000 (09:17 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:23:53 +0000 (09:23 +0200)
pdns/recursordist/html/local.js

index 97f301d7d42183f51e163fbb67d7f95a87587a67..f514c4e333b4bb7331561250aaa30020596eafcd 100644 (file)
@@ -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"])