diff options
-rw-r--r-- | static/fluoride.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/fluoride.js b/static/fluoride.js index 917ffff..6f14f86 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -246,11 +246,11 @@ function handleImgPreview(a) { img.src = e.target.getAttribute("href"); img.style["max-width"] = mw + "px"; img.style["max-height"] = mh + "px"; + imgPrev = img; img.onload = function(e2) { setPos(imgPrev, imgX, imgY, mw, mh); } document.body.appendChild(img); - imgPrev = img; } a.onmouseleave = function(e) { var img = document.getElementById("img-preview"); |