summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-17 07:51:45 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-17 07:51:45 +1100
commit134146e32cc873b6a8a74a4b2084ad9ae984f8e2 (patch)
tree7a60ac95db1b490b1d46d5abf60649a948ab3ad5
parente34de4e09dc8bdb8fad59b08348d60e9e0a694e9 (diff)
Allow post-hover.js to work /without/ forced-anon.js...
-rw-r--r--js/post-hover.js6
1 files 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);
}