From 7227c9765ec50d89793845cc71ea53941b524513 Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Sat, 14 Oct 2023 12:59:00 -0700 Subject: [PATCH] function not needed --- e2pg/web/index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/e2pg/web/index.html b/e2pg/web/index.html index b7d92ef2..5d7e826a 100644 --- a/e2pg/web/index.html +++ b/e2pg/web/index.html @@ -120,11 +120,6 @@

E2PG

const fieldDiv = taskDiv.querySelector(`.${field}`); fieldDiv.innerText = val; }; - function updateDest(taskID, destID, field, val) { - const destDiv = document.getElementById(`${taskID}-${destID}`); - const fieldDiv = destDiv.querySelector(`.${field}`); - fieldDiv.innerText = val; - }; document.addEventListener("DOMContentLoaded", function() { document.addEventListener('keydown', function(e) { if (e.keyCode == 73) { @@ -147,7 +142,7 @@

E2PG

update(tu.ID, "NRows", tu.NRows); for (const [k1, v1] of Object.entries(tu.Dstat)) { for (const [k2, v2] of Object.entries(v1)) { - updateDest(tu.ID, k1, k2, v2); + update(`${tu.ID}-${k1}`, k2, v2); } } };