From 835e0c5f681d2ffbecfe3082b6f79d0622505c29 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Mon, 29 Jun 2020 16:31:01 +0200 Subject: [PATCH] update Mo 29. Jun 16:31:01 CEST 2020 --- public/js/client_dbrd.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/js/client_dbrd.js b/public/js/client_dbrd.js index 1b34b75..73a29e7 100755 --- a/public/js/client_dbrd.js +++ b/public/js/client_dbrd.js @@ -507,9 +507,19 @@ socket.on('io.Einsatz', function (data) { newCell.appendChild(newText); newCell2.appendChild(newText2); var table_em = document.getElementById('table_einsatzmittel'); + var vorhanden = false; for (var j = 0, row; row = table_em.rows[j]; j++) { - console.log(row); + console.log(row.cells[0].innerHTML); + if (row.cells[0].innerHTML == data.einsatzmittel[i].wachenname) { + vorhanden = true; + console.log(vorhanden); + }; }; + if (vorhanden) { + + } else { + + } };