summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-17 07:46:44 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-17 07:46:44 +1100
commite34de4e09dc8bdb8fad59b08348d60e9e0a694e9 (patch)
tree53da17b74d05ce9f4a7083043e786eb02ba679f1
parent68e873315a0104968a722b7814ad1ce1c62243dd (diff)
Allow post-hover.js to work with forced-anon.js
-rw-r--r--js/forced-anon.js2
-rw-r--r--js/post-hover.js2
2 files changed, 3 insertions, 1 deletions
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);
}
});