Fix a bug in the mobile view where the second line doesn't get painted green for SSE new spots. Closes #87

This commit is contained in:
Ian Renton
2025-12-24 11:16:03 +00:00
parent d2c1dbb377
commit 05bc65337f

View File

@@ -192,7 +192,7 @@ function createNewTableRowsForSpot(s, highlightNew) {
// Show faded out if QRT // Show faded out if QRT
if (s["qrt"] == true) { if (s["qrt"] == true) {
$tr.addClass("table-faded"); $tr.addClass("table-faded");
} }
// If we are asked to highlight new rows (i.e. this row is being added "live" via the SSE client and not as a bulk // If we are asked to highlight new rows (i.e. this row is being added "live" via the SSE client and not as a bulk
@@ -350,10 +350,10 @@ function createNewTableRowsForSpot(s, highlightNew) {
$tr2.addClass("table-active"); $tr2.addClass("table-active");
} }
if (s["qrt"] == true) { if (s["qrt"] == true) {
$tr2.addClass("table-faded"); $tr2.addClass("table-faded");
} }
if (highlightNew) { if (highlightNew) {
$tr.addClass("new"); $tr2.addClass("new");
} }
$td2 = $("<td colspan='100'>"); $td2 = $("<td colspan='100'>");