From 8f191474ec49cf3acacbce6b5c0d0407060a12a3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 3 Oct 2020 01:23:27 +0100 Subject: [PATCH] wip fixes Signed-off-by: Ian Jackson --- templates/script.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index b93a7be2..fa7ae345 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -300,7 +300,7 @@ function recompute_keybindings() { var nextelem = celem.nextElementSibling let cid = celem.getAttribute("id"); if (cid == "uos-mid") mid_elem = celem; - else if (celem.getAttribute("class") == 'uos-mid') ; + else if (celem.getAttribute("class") == 'uos-mid') { } else celem.remove(); } for (var kk of uo_keys) { @@ -490,6 +490,8 @@ function redisplay_ancillaries(piece: PieceId, p: PieceInfo) { halo_colour = 'purple'; } else if (p.last_seen_moved != null) { halo_colour = 'yellow'; + } else if (p.held != null && p.pinned) { + halo_colour = 'white'; } if (halo_colour != null) { let nelem = ancillary_node(piece, halo_colour); -- 2.30.2