From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 19:50:10 +0000 (+0100) Subject: Add “comment” link to post before ajaxifying the replies. X-Git-Tag: 0.3.1-RC2~8 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=950fe124460556236a03c3d72de81b49d2083f39 Add “comment” link to post before ajaxifying the replies. --- 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"); }