add placeholder in CommentStreamView. [ci skip]

This commit is contained in:
danielgrippi 2012-01-26 19:58:00 -08:00
parent 5a78796ec0
commit 0da5f18ad5
2 changed files with 2 additions and 3 deletions

View file

@ -18,8 +18,7 @@
</a> </a>
<p> <p>
<label for="comment_text_on_<%= id %>"><%= Diaspora.I18n.t('stream.comment') %></label> <textarea class="comment_box" id="comment_text_on_<%= id %>" name="text" rows="2" placeholder="<%= Diaspora.I18n.t('stream.comment') %>"/>
<textarea class="comment_box" id="comment_text_on_<%= id %>" name="text" rows="2" />
</p> </p>
<div class="submit_button"> <div class="submit_button">
<input class="button creation" id="comment_submit_<%= id %>" name="commit" type="submit" value="<%= Diaspora.I18n.t('stream.comment') %>" /> <input class="button creation" id="comment_submit_<%= id %>" name="commit" type="submit" value="<%= Diaspora.I18n.t('stream.comment') %>" />

View file

@ -16,7 +16,7 @@ app.views.CommentStream = app.views.Base.extend({
}, },
postRenderTemplate : function() { postRenderTemplate : function() {
this.$("label").inFieldLabels(); this.$("textarea").placeholder();
this.model.comments.each(this.appendComment, this); this.model.comments.each(this.appendComment, this);
// add autoexpanders to new comment textarea // add autoexpanders to new comment textarea