This commit is contained in:
Michael Save 2012-03-17 07:54:08 +11:00
parent 134146e32c
commit ce25db62ea

View File

@ -27,6 +27,8 @@ $(document).ready(function(){
// post is in view // post is in view
post.attr('style', 'border-style: none dashed dashed none; background: ' + post.css('border-right-color')); post.attr('style', 'border-style: none dashed dashed none; background: ' + post.css('border-right-color'));
} else { } else {
var top = e.pageY - post.height() - 15;
post.clone() post.clone()
.attr('id', 'post-hover-' + id) .attr('id', 'post-hover-' + id)
.addClass('post-hover') .addClass('post-hover')
@ -34,6 +36,8 @@ $(document).ready(function(){
.css('border-style', 'solid') .css('border-style', 'solid')
.css('box-shadow', '1px 1px 1px #999') .css('box-shadow', '1px 1px 1px #999')
.css('display', 'block') .css('display', 'block')
.css('left', e.pageX)
.css('top', top > $(window).scrollTop() ? top : $(window).scrollTop())
.insertAfter($(link).parent()); .insertAfter($(link).parent());
$(link).trigger('mousemove'); $(link).trigger('mousemove');
} }
@ -59,7 +63,7 @@ $(document).ready(function(){
.find('div.post#reply_' + id); .find('div.post#reply_' + id);
if(typeof window.enable_fa == 'function' && localStorage['forcedanon']) if(typeof window.enable_fa == 'function' && localStorage['forcedanon'])
enable_fa(); enable_fa();
start_hover(link, post); start_hover(link);
} }
}); });
} }