Hide all reply input fields, add “comment” button.
[Sone.git] / src / main / resources / templates / index.html
index 3a5bb70..2b21e91 100644 (file)
@@ -4,6 +4,13 @@
                /* register input field/textarea swap. */
                $(document).ready(function() {
                        registerInputTextareaSwap("#sone input.createpost", "What are you doing?");
+                       registerInputTextareaSwap("#sone input.create-reply", "Write a Reply…");
+
+                       /* hide all the “create reply” forms until a link is clicked. */
+                       commentElement = $("<div>Comment</div>").addClass("show-reply-form").click(function() {
+                       });
+                       $("#sone .post > .status-line .time").after(commentElement);
+                       $("#sone .post .create-reply").addClass("hidden");
                });
        </script>