mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-21 19:41:28 +00:00
Fix null imgPrev in setPos
This commit is contained in:
parent
0b004efffa
commit
4ef5e0daf2
|
@ -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