diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-17 07:51:45 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-17 07:51:45 +1100 |
| commit | 134146e32cc873b6a8a74a4b2084ad9ae984f8e2 (patch) | |
| tree | 7a60ac95db1b490b1d46d5abf60649a948ab3ad5 /js | |
| parent | e34de4e09dc8bdb8fad59b08348d60e9e0a694e9 (diff) | |
Allow post-hover.js to work /without/ forced-anon.js...
Diffstat (limited to 'js')
| -rw-r--r-- | js/post-hover.js | 6 |
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); } |
