diff --git a/js/post-hover.js b/js/post-hover.js index db60e1f0..e5bb61d7 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -78,8 +78,8 @@ onready(function(){ // shrink expanded images newPost.find('div.file a[data-expanded="true"]').each(function() { - var thumb = $(this).data('src'); - $(this).find('img.post-image').attr('src', thumb); + var thumb = $(this).find('img.post-image').attr('src'); + $(this).find('img.full-image').attr('src', thumb); }); // Highlight references to the current post @@ -181,9 +181,11 @@ onready(function(){ return (i === 0) ? bytes +' '+ sizes[i] : (bytes / Math.pow(1024, i)).toFixed(2) +' ' +sizes[i]; }; + var time = (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') ? dateformat(new Date(data.time)) : timeDifference(Date.now(), data.time); var $post = $('