##// END OF EJS Templates
Fixed thread update
neko259 -
r710:3be7d3c8 default
parent child Browse files
Show More
@@ -68,7 +68,7 b' function updateThread() {'
68 }
68 }
69
69
70 post.appendTo(lastPost.parent());
70 post.appendTo(lastPost.parent());
71 processNewPost(post[0]);
71 processNewPost(post);
72
72
73 lastPost = post;
73 lastPost = post;
74 blink(post);
74 blink(post);
@@ -89,7 +89,7 b' function updateThread() {'
89 var oldPost = $('div.thread').children('.post[id=' + postId + ']');
89 var oldPost = $('div.thread').children('.post[id=' + postId + ']');
90
90
91 oldPost.replaceWith(post);
91 oldPost.replaceWith(post);
92 processNewPost(post[0]);
92 processNewPost(post);
93
93
94 blink(post);
94 blink(post);
95 }
95 }
@@ -249,7 +249,7 b' function updateOnPost(response, statusTe'
249 * Run js methods that are usually run on the document, on the new post
249 * Run js methods that are usually run on the document, on the new post
250 */
250 */
251 function processNewPost(post) {
251 function processNewPost(post) {
252 addRefLinkPreview(post);
252 addRefLinkPreview(post[0]);
253 highlightCode(post);
253 highlightCode(post);
254 }
254 }
255
255
General Comments 0
You need to be logged in to leave comments. Login now