From ed62c4e87988444f316a8b8e0ccdf14153a19f2a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 08:51:01 -0400 Subject: [PATCH] update image-inline --- contrib/js/expand-image.js | 3 ++- contrib/static/nntpchan.js | 2 +- contrib/static/site.css | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/js/expand-image.js b/contrib/js/expand-image.js index e363b59..cd50193 100644 --- a/contrib/js/expand-image.js +++ b/contrib/js/expand-image.js @@ -18,11 +18,12 @@ function setupInlineImage(thumb, url) { var oldurl = img.src; thumb.onclick = function() { if (expanded) { + thumb. img.setAttribute("class", "thumbnail"); img.src = oldurl; expanded = false; } else { - img.setAttribute("class", "thumbnail expanded"); + img.setAttribute("class", "expanded-thumbnail"); img.src = url; expanded = true; } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index add41ea..3026503 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