# HG changeset patch # User neko259 # Date 2014-06-23 13:44:16 # Node ID 3be7d3c835d5f8286df3356c68395c0f382f2d11 # Parent e6788412d9a6e9f2d5f849c3c24826701f8e0a4b Fixed thread update diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -68,7 +68,7 @@ function updateThread() { } post.appendTo(lastPost.parent()); - processNewPost(post[0]); + processNewPost(post); lastPost = post; blink(post); @@ -89,7 +89,7 @@ function updateThread() { var oldPost = $('div.thread').children('.post[id=' + postId + ']'); oldPost.replaceWith(post); - processNewPost(post[0]); + processNewPost(post); blink(post); } @@ -249,7 +249,7 @@ function updateOnPost(response, statusTe * Run js methods that are usually run on the document, on the new post */ function processNewPost(post) { - addRefLinkPreview(post); + addRefLinkPreview(post[0]); highlightCode(post); }