Fix thumb scrolling on videos

This commit is contained in:
Jerome Charaoui 2013-12-22 03:01:50 -05:00
parent 315b03f737
commit 10a31bbd1e

View File

@ -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);