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:
c573bd0
)
prep for halo
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:28:10 +0000
(16:28 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:28:10 +0000
(16:28 +0100)
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index b8eca386a0901029dcf01cc20c89ca317f5fe146..e3e4bf33c6467f4ffa7b1652903766e873c794b5 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-233,10
+233,13
@@
function set_ungrab(piece: PieceId, p: PieceInfo) {
piece_undisplay_grab(piece,p);
}
function piece_undisplay_grab(piece: PieceId, p: PieceInfo) {
+ piece_undisplay_ancillary(p, "#select"+piece);
+}
+function piece_undisplay_ancillary(p: PieceInfo, href: string) {
for (let celem = p.pelem.firstElementChild;
celem != null;
celem = celem.nextElementSibling) {
- if (celem.getAttributeNS(null,"href") ==
"#select"+piece
) {
+ if (celem.getAttributeNS(null,"href") ==
href
) {
celem.remove();
return;
}