Replaces comma by dot
This commit is contained in:
parent
93028b9be0
commit
ce05318d94
4 changed files with 43 additions and 12 deletions
|
|
@ -55,7 +55,7 @@
|
|||
<div class="input">
|
||||
<input type="text" id="amount" name="amount" ng-attr-placeholder="{{'Amount'|translate}}"
|
||||
ng-model="_customAmount" valid-amount required autocomplete="off" pattern="[0-9]+([\.,][0-9]+)*">
|
||||
<input type="number" id="alternative" name="alternative" ng-model="_customAlternative" style="display:none">
|
||||
<input type="text" id="alternative" name="alternative" ng-model="_customAlternative" style="display:none">
|
||||
<a class="postfix" ng-click="toggleAlternative()">{{unitName}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -64,8 +64,8 @@
|
|||
</label>
|
||||
<div class="input">
|
||||
<input type="text" id="alternative" name="alternative" ng-attr-placeholder="{{'Amount'|translate}}"
|
||||
ng-model="_customAlternative" requiredautocomplete="off" pattern="[0-9]+([\.,][0-9]+)*" required>
|
||||
<input type="number" id="amount" name="amount" ng-model="_customAmount" style="display:none">
|
||||
ng-model="_customAlternative" valid-alternative required autocomplete="off" pattern="[0-9]+([\.,][0-9]+)*" required>
|
||||
<input type="text" id="amount" name="amount" ng-model="_customAmount" style="display:none">
|
||||
<a class="postfix" ng-click="toggleAlternative()"> {{ alternativeIsoCode }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@
|
|||
<i class="icon-close-circle size-14"></i>
|
||||
<span clas="vm" translate>Not valid</span>
|
||||
</span>
|
||||
<small class="text-primary right" ng-if="!sendForm.amount.$invalid">
|
||||
<small class="text-primary right" ng-if="!sendForm.amount.$invalid && !sendForm.alternative.$invalid">
|
||||
<i class="icon-checkmark-circle size-14"></i>
|
||||
</small>
|
||||
</div>
|
||||
|
|
@ -385,7 +385,7 @@
|
|||
<input type="text" id="amount" ng-disabled="home.blockUx || home.lockAmount" name="amount"
|
||||
ng-attr-placeholder="{{'Amount'|translate}}"
|
||||
ng-model="_amount" valid-amount required autocomplete="off" ng-focus="home.formFocus('amount')"
|
||||
ng-blur="home.formFocus(false)" pattern="[0-9]+([\.,][0-9]+)*">
|
||||
ng-blur="home.formFocus(false)">
|
||||
<input type="text" id="alternative" name="alternative" ng-model="_alternative" style="display:none">
|
||||
<a class="postfix" ng-click="home.showAlternative()">{{home.unitName}}</a>
|
||||
</div>
|
||||
|
|
@ -396,8 +396,8 @@
|
|||
<div class="input">
|
||||
<input type="text" id="alternative" ng-disabled="home.blockUx || !home.isRateAvailable ||
|
||||
home.lockAmount" name="alternative" ng-attr-placeholder="{{'Amount'|translate}}"
|
||||
ng-model="_alternative" required autocomplete="off" ng-focus="home.formFocus('amount')"
|
||||
ng-blur="home.formFocus(false)" pattern="[0-9]+([\.,][0-9]+)*">
|
||||
ng-model="_alternative" valid-alternative required autocomplete="off" ng-focus="home.formFocus('amount')"
|
||||
ng-blur="home.formFocus(false)">
|
||||
<input type="text" id="amount" name="amount" ng-model="_amount" style="display:none">
|
||||
<a class="postfix" ng-click="home.hideAlternative()"> {{ home.alternativeIsoCode }}</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue