|
|
@@ -32,7 +32,7 @@ |
|
|
|
'{{/if}}' + |
|
|
|
' </div>' + |
|
|
|
' <form class="newCommentForm">' + |
|
|
|
' <input type="text" class="message" placeholder="{{newMessagePlaceholder}}" value="{{message}}" />' + |
|
|
|
' <textarea rows="1" class="message" placeholder="{{newMessagePlaceholder}}">{{message}}</textarea>' + |
|
|
|
' <input class="submit icon-confirm" type="submit" value="" />' + |
|
|
|
'{{#if isEditMode}}' + |
|
|
|
' <input class="cancel pull-right" type="button" value="{{cancelText}}" />' + |
|
|
@@ -174,6 +174,8 @@ |
|
|
|
} |
|
|
|
this.delegateEvents(); |
|
|
|
this.$el.find('.message').on('keydown input change', this._onTypeComment); |
|
|
|
|
|
|
|
autosize(this.$el.find('.newCommentRow textarea')) |
|
|
|
}, |
|
|
|
|
|
|
|
_formatItem: function(commentModel) { |
|
|
@@ -281,6 +283,9 @@ |
|
|
|
$formRow.find('.avatar').replaceWith($comment.find('.avatar').clone()); |
|
|
|
$formRow.find('.has-tooltip').tooltip(); |
|
|
|
|
|
|
|
// Enable autosize |
|
|
|
autosize($formRow.find('textarea')); |
|
|
|
|
|
|
|
return false; |
|
|
|
}, |
|
|
|
|
|
|
@@ -346,7 +351,6 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
}, |
|
|
|
|