summaryrefslogtreecommitdiff
path: root/js/auto-reload.js
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-18 23:55:01 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-18 23:55:01 +1100
commit21a1152ebead57c60c76c341d4f8ec8bc737949b (patch)
treed4fbc7268872167d1377f67427773f48ecfcaf0a /js/auto-reload.js
parent8208d7151bc952462c9220304877525dcc398cea (diff)
custom event for new posts, so auto-reload.js etc will work with forced-anon.js and post-hover.js
Diffstat (limited to 'js/auto-reload.js')
-rw-r--r--js/auto-reload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js
index 0921c36d..44a4b9be 100644
--- a/js/auto-reload.js
+++ b/js/auto-reload.js
@@ -27,12 +27,13 @@ $(document).ready(function(){
var id = $(this).attr('id');
if($('#' + id).length == 0) {
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
+ $(document).trigger('new_post', this);
}
});
}
});
- poll_interval = setTimeout(poll, 5000);
+ poll_interval = setTimeout(poll, 500);
};
$(window).scroll(function() {