show actual posts instead of highlighting them

This commit is contained in:
Michael Save 2012-03-16 09:29:58 +11:00
parent f48d338ce0
commit a573960229

View File

@ -20,10 +20,22 @@ $(document).ready(function(){
} }
var post = $('div.post#reply_' + id); var post = $('div.post#reply_' + id);
$(this).hover(function() { $(this).hover(function(e) {
post.attr('style', 'border-style: none dashed dashed none; background: ' + post.css('border-right-color')); post.clone()
.attr('id', 'post-hover-' + id)
.addClass('post-hover')
.css('position', 'absolute')
.css('left', e.pageX + 15)
.css('top', e.pageY - post.height() - 15)
.css('border-style', 'solid')
.css('box-shadow', '1px 1px 1px #999')
.insertAfter($(this).parent());
}, function() { }, function() {
post.attr('style', ''); $('.post-hover').remove();
}).mousemove(function(e) {
$('#post-hover-' + id)
.css('left', e.pageX + 15)
.css('top', e.pageY - post.height() - 15);
}); });
}); });
}); });