From 03a926de9651f736843f81058136938780194423 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Thu, 28 Jan 2021 19:34:11 +0000 Subject: [PATCH] Fixed Problem with permanent txing first row (in time). --- html/js/functions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/js/functions.js b/html/js/functions.js index b7a5f7d..34d27b9 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -392,7 +392,8 @@ function getLastHeard(document, event) { logIt("RowIndexes: " + rowIndexes); if (rowIndexes[0]) { if (rowIndexes[0] == "0") { - rowIndexes[0] = rowIndexes[1]; + t_lh.row(rowIndexes[0]).remove().draw(false); + //rowIndexes[0] = rowIndexes[1]; } logIt(t_lh.row(rowIndexes[0])); if (t_lh.row(rowIndexes[0]).data[0] != null) { @@ -452,7 +453,8 @@ function getLastHeard(document, event) { return false; }); if (rowIndexes[0] == "0") { - rowIndexes[0] = rowIndexes[1]; + t_lh.row(rowIndexes[0]).remove().draw(false); + //rowIndexes[0] = rowIndexes[1]; } if (rowIndexes[0]) {