summaryrefslogtreecommitdiff
path: root/js/id_highlighter.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/id_highlighter.js')
-rw-r--r--js/id_highlighter.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/id_highlighter.js b/js/id_highlighter.js
index 82e2c79d..d0a5fabf 100644
--- a/js/id_highlighter.js
+++ b/js/id_highlighter.js
@@ -23,7 +23,7 @@ if (active_page == 'thread' || active_page == 'index') {
return toRet;
}
- $(".poster_id").click(function(){
+ var id_highlighter = function(){
var id = $(this).text();
if($.inArray(id, idshighlighted) !== -1){
@@ -39,6 +39,12 @@ if (active_page == 'thread' || active_page == 'index') {
$(this).addClass("highlighted");
});
}
+ }
+
+ $(".poster_id").on('click', id_highlighter);
+
+ $(document).on('new_post', function(e, post) {
+ $(post).find('.poster_id').on('click', id_highlighter);
});
});
}