Merge pull request #422 from marktaiwan/post-hover

Shrink expanded thumbnails on post hover
This commit is contained in:
Fredrick Brennan 2015-03-11 07:31:46 +08:00
commit 63244cc200

View File

@ -77,10 +77,8 @@ onready(function(){
.appendTo(link.closest('div.post'));
// shrink expanded images
newPost.find('div.file a[data-expanded="true"]').each(function() {
var thumb = $(this).find('img.post-image').attr('src');
$(this).find('img.full-image').attr('src', thumb);
});
newPost.find('div.file img.post-image').css({'display': '', 'opacity': ''});
newPost.find('div.file img.full-image').remove();
// Highlight references to the current post
if (link.hasClass('mentioned-'+id)) {