try fixing inline expand again
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user