Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/views/walletHome.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ <h4 class="title m0" style="padding:10px 0 0; background-color: #F1F3F5;">
</label>
<div class="input">
<textarea id="comment" ng-disabled="home.blockUx" name="comment"
ng-maxlength="500" ng-model="_comment" ng-focus="home.formFocus('msg')"
ng-maxlength="500" maxlength="500" ng-model="_comment" ng-focus="home.formFocus('msg')"
ng-blur="home.formFocus(false)"></textarea>
</div>
</div>
Expand Down Expand Up @@ -724,7 +724,7 @@ <h4 ng-if="home.aa_dry_run_error || home.aa_message_results.length || home.aa_st
<label style="float: left;">
<span translate>Text to be forever saved on the DAG:</span>
</label>
<textarea name="content" ng-model="home.content" placeholder="Text" required rows="4" ng-change="home.validateTextLength()" style="margin-bottom: 0px;/*font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;*/" ng-trim="false"></textarea>
<textarea name="content" ng-model="home.content" placeholder="Text" required rows="10" ng-change="home.validateTextLength()" style="margin-bottom: 0px;/*font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;*/" ng-trim="false"></textarea>
<div ng-if="sendDataForm.content.$invalid && home.content" class="text-warning size-12" translate>Too long text</div>
<div ng-if="sendDataForm.content.$valid || !home.content" class="size-12">{{home.content.length || 0}} <span translate>character(s)</span></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/controllers/walletHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ angular.module('copayApp.controllers')

this.validateTextLength = function () {
var form = $scope.sendDataForm;
form.content.$setValidity('validLength', !(self.content && self.content.length > 140));
form.content.$setValidity('validLength', !(self.content && self.content.length > 280));
}

this.onAddressChanged = function () {
Expand Down