Make reply input fields have a default text.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 06:52:12 +0000 (08:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 06:52:12 +0000 (08:52 +0200)
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/index.html

index a0d5875..0947c72 100644 (file)
        font-weight: bold;
 }
 
-#sone input.createpost.default {
+#sone input.createpost.default, input.create-reply.default {
        color: #888;
 }
\ No newline at end of file
index 292eddd..00ee653 100644 (file)
@@ -24,7 +24,7 @@
                        <form method="post" action="createReply.html">
                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                <input type="hidden" name="post" value="<% post.id>" />
-                               <input type="text" name="text" value="" />
+                               <input type="text" class="create-reply" name="text" value="" />
                                <button type="submit"><%= View.Post.SendReply|l10n|html></button>
                        </form>
                </div>
index 3a5bb70..579281b 100644 (file)
@@ -4,6 +4,7 @@
                /* register input field/textarea swap. */
                $(document).ready(function() {
                        registerInputTextareaSwap("#sone input.createpost", "What are you doing?");
+                       registerInputTextareaSwap("#sone input.create-reply", "Write a Reply…");
                });
        </script>