Archived
1
0

try fixing inline expand again

This commit is contained in:
Jeff Becker
2016-04-30 08:42:54 -04:00
parent 14cf2cbe5b
commit 7022dbf8c1
2 changed files with 5 additions and 5 deletions

View File

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