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'));
|
.appendTo(link.closest('div.post'));
|
||||||
|
|
||||||
// shrink expanded images
|
// shrink expanded images
|
||||||
newPost.find('div.file a[data-expanded="true"]').each(function() {
|
newPost.find('div.file img.post-image').css({'display': '', 'opacity': ''});
|
||||||
var thumb = $(this).find('img.post-image').attr('src');
|
newPost.find('div.file img.full-image').remove();
|
||||||
$(this).find('img.full-image').attr('src', thumb);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Highlight references to the current post
|
// Highlight references to the current post
|
||||||
if (link.hasClass('mentioned-'+id)) {
|
if (link.hasClass('mentioned-'+id)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user