Fixed wrong path for public photos in view.php
This commit is contained in:
parent
d627a66a71
commit
d75c980e7a
@ -90,8 +90,6 @@ function loadPhotoInfo(photoID) {
|
|||||||
document.title = "Lychee - " + data.title;
|
document.title = "Lychee - " + data.title;
|
||||||
headerTitle.html(data.title);
|
headerTitle.html(data.title);
|
||||||
|
|
||||||
data.url = "uploads/big/" + data.url;
|
|
||||||
|
|
||||||
imageview.attr("data-id", photoID);
|
imageview.attr("data-id", photoID);
|
||||||
if (isPhotoSmall(data)) imageview.html("<div id='image' class='small' style='background-image: url(" + data.url + "); width: " + data.width + "px; height: " + data.height + "px; margin-top: -" + parseInt((data.height/2)-20) + "px; margin-left: -" + data.width/2 + "px;'></div>");
|
if (isPhotoSmall(data)) imageview.html("<div id='image' class='small' style='background-image: url(" + data.url + "); width: " + data.width + "px; height: " + data.height + "px; margin-top: -" + parseInt((data.height/2)-20) + "px; margin-left: -" + data.width/2 + "px;'></div>");
|
||||||
else imageview.html("<div id='image' style='background-image: url(" + data.url + ");'></div>");
|
else imageview.html("<div id='image' style='background-image: url(" + data.url + ");'></div>");
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user