mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 19:29:28 +01:00
shrink expanded thumbnails on post hover
This commit is contained in:
parent
45bb8f0920
commit
7f7176d12c
@ -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