Hide excess upcoming thumbs instead of showing error image.
This commit is contained in:
parent
48c7a8e8d9
commit
61e21fe03c
1 changed files with 2 additions and 0 deletions
|
|
@ -460,10 +460,12 @@ function show_current_photo()
|
|||
if (upcoming_photo !== undefined && upcoming_photo.has_thumbnail)
|
||||
{
|
||||
upcoming_imgs[index].src = "/photo/" + upcoming_photo.id + "/thumbnail";
|
||||
upcoming_imgs[index].classList.remove("hidden");
|
||||
}
|
||||
else
|
||||
{
|
||||
upcoming_imgs[index].src = "";
|
||||
upcoming_imgs[index].classList.add("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue