Websocketed photos now fade in

This commit is contained in:
Raphael 2010-07-30 10:20:50 -07:00
parent 3eeb81ad34
commit e7ef3c06ed

View file

@ -60,9 +60,14 @@
if (location.href.indexOf(photoHash['album_id']) == -1){
return ;
}
html = "<div class=\'image_thumb\'> <a href=\"/photos/"+ photoHash['id'] +"\"><img alt=\"New thumbnail\" src=\""+ photoHash['thumb_url'] +"\" style=\"display:inline;\" /> </a> </div>"
$("#thumbnails").append( $(html).fadeIn("fast") )
html = "<div class=\'image_thumb\' id=\'"+photoHash['id']+"\'> \
<a href=\"/photos/"+ photoHash['id'] +"\"> \
<img alt=\"New thumbnail\" src=\""+ photoHash['thumb_url'] +"\" /> \
</a> </div>"
$("#thumbnails").append( $(html) )
$(".image_thumb img").load( function() {
$(this).fadeIn("slow");
});
}
function onPageForClass(className){