fix caption
This commit is contained in:
parent
b855fbc9ad
commit
5f54466ec0
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function setImage(src, href, cw) {
|
||||||
let caption = getById('cw');
|
let caption = getById('cw');
|
||||||
|
|
||||||
if (defined(caption) && defined(cw)) {
|
if (defined(caption) && defined(cw)) {
|
||||||
caption.innerHTML = cw;
|
caption.innerHTML = `<span id=cw-text>cw: <b>${cw}</b></span>`;
|
||||||
} else if (defined(caption)) {
|
} else if (defined(caption)) {
|
||||||
mainfig.removeChild(caption);
|
mainfig.removeChild(caption);
|
||||||
} else if (defined(cw)) {
|
} else if (defined(cw)) {
|
||||||
|
|
Loading…
Reference in a new issue