Archived
1
0

try fixing inline image expand again

This commit is contained in:
Jeff Becker
2016-04-30 08:36:46 -04:00
parent d69ee3a8d0
commit 77be791ce7
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function setupInlineImage(thumb, url) {
var img = thumb.querySelector("img.thumbnail");
var expanded = false;
var oldurl = img.src;
thumb.onclick = function(ev) {
img.addEventListener("click", function(ev) {
if (expanded) {
img.setAttribute("class", "thumbnail");
img.src = oldurl;
@@ -26,7 +26,7 @@ function setupInlineImage(thumb, url) {
img.src = url;
expanded = true;
}
}
}, false);
}
// set up image inlining for all applicable children in an element