From 5a069dbb9a88e4636418ecacbb4d9caaf0da303e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 08:38:11 -0400 Subject: [PATCH] try fixing inline image more --- contrib/js/expand-image.js | 1 + contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/js/expand-image.js b/contrib/js/expand-image.js index 85b440b..01dc373 100644 --- a/contrib/js/expand-image.js +++ b/contrib/js/expand-image.js @@ -16,6 +16,7 @@ function setupInlineImage(thumb, url) { var img = thumb.querySelector("img.thumbnail"); var expanded = false; var oldurl = img.src; + thumb.href = "#"; img.addEventListener("click", function(ev) { if (expanded) { img.setAttribute("class", "thumbnail"); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 34540f9..54a9de8 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