Use /photo/id/thumbnail instead of /thumbnail/id.
This commit is contained in:
parent
96b4dc2f08
commit
f01dd63077
1 changed files with 2 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ function show_current_photo()
|
||||||
name_tag.href = "/photo/" + current_photo.id;
|
name_tag.href = "/photo/" + current_photo.id;
|
||||||
if (current_photo.has_thumbnail)
|
if (current_photo.has_thumbnail)
|
||||||
{
|
{
|
||||||
photo_viewer_img.src = "/thumbnail/" + current_photo.id + ".jpg";
|
photo_viewer_img.src = "/photo/" + current_photo.id + "/thumbnail";
|
||||||
waiting_for_img = true;
|
waiting_for_img = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -459,7 +459,7 @@ function show_current_photo()
|
||||||
upcoming_photo = photo_queue[index];
|
upcoming_photo = photo_queue[index];
|
||||||
if (upcoming_photo !== undefined && upcoming_photo.has_thumbnail)
|
if (upcoming_photo !== undefined && upcoming_photo.has_thumbnail)
|
||||||
{
|
{
|
||||||
upcoming_imgs[index].src = "/thumbnail/" + upcoming_photo.id + ".jpg";
|
upcoming_imgs[index].src = "/photo/" + upcoming_photo.id + "/thumbnail";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue