From bf6ef27874da5f18db15386b76d40bf62d6273c6 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Fri, 18 Sep 2020 20:14:50 +0200 Subject: [PATCH] fix cw stuff... again --- script/single.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {