Overlay a small icon on video thumbnails
This commit is contained in:
parent
0443b99492
commit
1409c13e30
@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
|
||||
"status": "open",
|
||||
"status": "fixed",
|
||||
|
||||
|
||||
|
||||
|
BIN
web/img/video-icon.png
Normal file
BIN
web/img/video-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -97,7 +97,10 @@ $(document).ready(function() {
|
||||
photos = [];
|
||||
for (i = 0; i < currentAlbum.photos.length; ++i) {
|
||||
link = $("<a href=\"#!/" + photoFloat.photoHash(currentAlbum, currentAlbum.photos[i]) + "\"></a>");
|
||||
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")
|
||||
image.css("background-image", "url(" + image.attr("src") + ")").attr("src", "img/video-icon.png");
|
||||
else
|
||||
image.get(0).photo = currentAlbum.photos[i];
|
||||
link.append(image);
|
||||
photos.push(link);
|
||||
|
Loading…
Reference in New Issue
Block a user