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