From 742aef546100fb47c8d4916a722e3faf58937377 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Fri, 23 Oct 2026 17:13:17 +0100 Subject: [PATCH] Adding highlighting to the currently selected VLAN in the top table so that it is more clear it is selected --- html/app.js | 3 +++ html/index.html | 1 + 2 files changed, 4 insertions(+) diff --git a/html/app.js b/html/app.js index c40e2d09..a7e98f45 100644 --- a/html/app.js +++ b/html/app.js @@ -1600,6 +1600,9 @@ function vlanLoad(vid) { } $("vmgmtpromote").checked = ($("vmgmtcur").dataset.id == vid); toast(t("v_loaded", {n: vid}), "ok"); + for(const vlanRow of $("vtable").tBodies[0].rows) { + vlanRow.className=vlanRow.firstChild.firstChild.dataset.id == vid ? "sel":""; + } }).catch(function() {toast(t("v_notfound", {n: vid}), "err")}); } diff --git a/html/index.html b/html/index.html index a64a0b0e..2660cfbc 100644 --- a/html/index.html +++ b/html/index.html @@ -93,6 +93,7 @@ table.t th.num{text-align:right} table.t td{padding:6px 8px;border-bottom:1px solid var(--bd);vertical-align:middle} table.t tr:last-child td{border-bottom:0} table.t tr:hover td{background:var(--sel)} +table.t tr.sel{background:var(--panel2); font-weight: bold;} .num{font-variant-numeric:tabular-nums;text-align:right} .scrollx{overflow-x:auto} input.in,select.in,textarea.in{