diff --git a/script/single.js b/script/single.js index 8f4dc39..78f6bf0 100644 --- a/script/single.js +++ b/script/single.js @@ -31,7 +31,7 @@ function setImage(id, src, width, height, href, cw, firstLoad) { newCaption = document.getElementById('cw-template') .content.firstElementChild.cloneNode(true); newCaption.querySelector('#cw-text').innerHTML = cw; - addCWListeners(id, newCaption.querySelector('#cw')); + addCWListeners(id, newCaption); } if (caption) {