Allow post-hover.js to work /without/ forced-anon.js...

This commit is contained in:
Michael Save 2012-03-17 07:51:45 +11:00
parent e34de4e09d
commit 134146e32c

View File

@ -54,8 +54,10 @@ $(document).ready(function(){
url: $(this).attr('href'),
context: document.body,
success: function(data) {
post = $('div.post:first').prepend($(data).find('div.post#reply_' + id).css('display', 'none').addClass('hidden')).find('div.post#reply_' + id);
if(localStorage['forcedanon'])
post = $('div.post:first')
.prepend($(data).find('div.post#reply_' + id).css('display', 'none').addClass('hidden'))
.find('div.post#reply_' + id);
if(typeof window.enable_fa == 'function' && localStorage['forcedanon'])
enable_fa();
start_hover(link, post);
}