From: Ian Jackson Date: Sat, 3 Oct 2020 00:23:27 +0000 (+0100) Subject: wip fixes X-Git-Tag: otter-0.2.0~790 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8f191474ec49cf3acacbce6b5c0d0407060a12a3;p=otter.git wip fixes Signed-off-by: Ian Jackson --- 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);