Websocketed photos now fade in
This commit is contained in:
parent
3eeb81ad34
commit
e7ef3c06ed
1 changed files with 8 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue