From e34de4e09dc8bdb8fad59b08348d60e9e0a694e9 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 17 Mar 2012 07:46:44 +1100 Subject: [PATCH] Allow post-hover.js to work with forced-anon.js --- js/forced-anon.js | 2 +- js/post-hover.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/forced-anon.js b/js/forced-anon.js index 6949769d..0f7f1c70 100644 --- a/js/forced-anon.js +++ b/js/forced-anon.js @@ -12,7 +12,7 @@ */ $(document).ready(function(){ - var enable_fa = function() { + enable_fa = function() { $('p.intro label').each(function() { if($(this).children('a.capcode').length == 0) { var id = $(this).parent().children('a.post_no:eq(1)').text(); diff --git a/js/post-hover.js b/js/post-hover.js index 39c4aca6..d7d567cd 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -55,6 +55,8 @@ $(document).ready(function(){ 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']) + enable_fa(); start_hover(link, post); } });