forked from GithubBackups/vichan
Merge pull request #422 from marktaiwan/post-hover
Shrink expanded thumbnails on post hover
This commit is contained in:
commit
63244cc200
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user