mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-12-22 09:10:42 +00:00
Fix null imgPrev in setPos
This commit is contained in:
parent
0b004efffa
commit
4ef5e0daf2
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue