Fix thumb scrolling on videos
This commit is contained in:
parent
315b03f737
commit
10a31bbd1e
@ -100,7 +100,6 @@ $(document).ready(function() {
|
|||||||
image = $("<img title=\"" + photoFloat.trimExtension(currentAlbum.photos[i].name) + "\" alt=\"" + photoFloat.trimExtension(currentAlbum.photos[i].name) + "\" src=\"" + photoFloat.photoPath(currentAlbum, currentAlbum.photos[i], 150, true) + "\" height=\"150\" width=\"150\" />");
|
image = $("<img title=\"" + photoFloat.trimExtension(currentAlbum.photos[i].name) + "\" alt=\"" + photoFloat.trimExtension(currentAlbum.photos[i].name) + "\" src=\"" + photoFloat.photoPath(currentAlbum, currentAlbum.photos[i], 150, true) + "\" height=\"150\" width=\"150\" />");
|
||||||
if (currentAlbum.photos[i].mediaType == "video")
|
if (currentAlbum.photos[i].mediaType == "video")
|
||||||
image.css("background-image", "url(" + image.attr("src") + ")").attr("src", "img/video-icon.png");
|
image.css("background-image", "url(" + image.attr("src") + ")").attr("src", "img/video-icon.png");
|
||||||
else
|
|
||||||
image.get(0).photo = currentAlbum.photos[i];
|
image.get(0).photo = currentAlbum.photos[i];
|
||||||
link.append(image);
|
link.append(image);
|
||||||
photos.push(link);
|
photos.push(link);
|
||||||
|
Loading…
Reference in New Issue
Block a user