From d69ee3a8d08ec728adcf9787bd731a5192b6b0ce Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 08:34:33 -0400 Subject: [PATCH] try fixing image-inline --- contrib/js/expand-image.js | 2 +- contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/js/expand-image.js b/contrib/js/expand-image.js index 190585e..d2e3063 100644 --- a/contrib/js/expand-image.js +++ b/contrib/js/expand-image.js @@ -16,7 +16,7 @@ function setupInlineImage(thumb, url) { var img = thumb.querySelector("img.thumbnail"); var expanded = false; var oldurl = img.src; - img.onclick = function(ev) { + thumb.onclick = function(ev) { if (expanded) { img.setAttribute("class", "thumbnail"); img.src = oldurl; diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 370e611..92253d3 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -16,7 +16,7 @@ parent.backlink=true;}};parent.backlink=true;} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx