From 7f7176d12c82d01af417c7cf1b6e993e81ca974f Mon Sep 17 00:00:00 2001 From: marktaiwan Date: Mon, 9 Mar 2015 12:49:29 +0800 Subject: [PATCH] shrink expanded thumbnails on post hover --- js/post-hover.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/post-hover.js b/js/post-hover.js index 7be1c155..043a423b 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -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)) {