Archived
1
0

update image-inline

This commit is contained in:
Jeff Becker
2016-04-30 08:51:01 -04:00
parent a02c6f040e
commit ed62c4e879
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}