X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2Findex.html;h=c4c251ab31b5111311ba58d77764fe113e1b2aaa;hb=f17746700b861bb3485b839397a6fc073ab0bd93;hp=579281b02fb89eebfc69c8ae87422a5bdf85d446;hpb=aa5b592e1ced0ca496918699742fa0660b9297d1;p=Sone.git diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 579281b..c4c251a 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -4,7 +4,34 @@ /* register input field/textarea swap. */ $(document).ready(function() { registerInputTextareaSwap("#sone input.createpost", "What are you doing?"); - registerInputTextareaSwap("#sone input.create-reply", "Write a Replyâ¦"); + registerInputTextareaSwap("#sone input.reply-input", "Write a Replyâ¦"); + + /* hide all the âcreate replyâ forms until a link is clicked. */ + $("#sone .post").each(function() { + postId = $(this).attr("id"); + commentElement = (function(postId) { + var commentElement = $("