add placeholder in CommentStreamView. [ci skip]
This commit is contained in:
parent
5a78796ec0
commit
0da5f18ad5
2 changed files with 2 additions and 3 deletions
|
|
@ -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') %>" />
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue