Skip to content

Commit

Permalink
Make comments and messages textareas to be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed May 29, 2019
1 parent d831e32 commit 078f590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/app/views/partials/tip_comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="panel-body" data-ng-show="!collapsed">
<div data-ng-if="session.role !== 'whistleblower' || tip.enable_two_way_comments" class="row">
<div class="col-md-12">
<textarea id="TipCommunicationCommentsInput" data-ng-model="tip.newCommentContent" maxlength="4096" class="form-control" autocomplete="off"></textarea>
<textarea id="TipCommunicationCommentsInput" data-ng-model="tip.newCommentContent" maxlength="4096" class="form-control" autocomplete="off" dynamic-textarea></textarea>
<span class="pull-right">{{tip.newCommentContent.length ? tip.newCommentContent.length : '0'}}/4096</span>
</div>
<div class="col-md-12">
Expand Down
2 changes: 1 addition & 1 deletion client/app/views/partials/tip_messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</span>
</div>
<br />
<textarea id="TipCommunicationMessagesInput" data-ng-model="tip.newMessageContent" maxlength="4096" class="form-control" autocomplete="off"></textarea>
<textarea id="TipCommunicationMessagesInput" data-ng-model="tip.newMessageContent" maxlength="4096" class="form-control" autocomplete="off" dynamic-textarea></textarea>
<span class="pull-right">{{tip.newMessagesContent.length ? tip.newMessagesContent.length : '0'}}/4096</span>
</div>
<div class="col-md-12">
Expand Down

0 comments on commit 078f590

Please sign in to comment.