From 950fe124460556236a03c3d72de81b49d2083f39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 25 Nov 2010 20:50:10 +0100 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9Ccomment=E2=80=9D=20link=20to=20po?= =?utf8?q?st=20before=20ajaxifying=20the=20replies.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/javascript/sone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 3a84d9c..39999e9 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -484,6 +484,9 @@ function ajaxifyPost(postElement) { return false; }); + /* add “comment” link. */ + addCommentLink(getPostId(postElement), postElement, $(postElement).find(".post-status-line .time")); + /* process all replies. */ $(postElement).find(".reply").each(function() { ajaxifyReply(this); @@ -496,9 +499,6 @@ function ajaxifyPost(postElement) { }); }); - /* add “comment” link. */ - addCommentLink(getPostId(postElement), postElement); - /* hide reply input field. */ $(postElement).find(".create-reply").addClass("hidden"); } -- 2.7.4