From 134146e32cc873b6a8a74a4b2084ad9ae984f8e2 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 17 Mar 2012 07:51:45 +1100 Subject: [PATCH] Allow post-hover.js to work /without/ forced-anon.js... --- js/post-hover.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/post-hover.js b/js/post-hover.js index d7d567cd..5e5f4bab 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -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); }