chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4800983
)
fix redisplay ancillaries
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 19:34:07 +0000
(20:34 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 19:34:07 +0000
(20:34 +0100)
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index a03e25b063c205d59f5a92a23f91672e208b22b6..acb41ae2a4a32842fe4a99d9f11177bfa9d6de4a 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-242,15
+242,14
@@
function ancillary_node(piece: PieceId, stroke: string): SVGGraphicsElement {
function redisplay_ancillaries(piece: PieceId, p: PieceInfo) {
let href = '#surround'+piece;
+ console.log('REDISPLAY ANCILLARIES',href);
for (let celem = p.pelem.firstElementChild;
celem != null;
celem = celem.nextElementSibling) {
let thref = celem.getAttributeNS(null,"href");
- console.log('UNDISPLAY ANCILLARY',href,thref);
if (thref == href) {
celem.remove();
- return;
}
}