Fix input-amount for WP. Lock-amount by default

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-09 20:22:45 -03:00
commit e7e9de6adb
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 51 additions and 28 deletions

View file

@ -610,8 +610,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
form.amount.$setViewValue("" + amount);
form.amount.$isValid = true;
form.amount.$render();
if (!this.fromInputAmount)
this.lockAmount = true;
this.lockAmount = true;
this.fromInputAmount = false;
}

View file

@ -44,28 +44,6 @@ textarea:focus {
background: transparent;
}
input[type="amount"] {
&[readonly] {
width: 100%;
opacity: 1;
color: #B7C2CD;
margin-bottom: 1.5rem;
height: 35px;
background: transparent;
border: none;
padding-left: 0.1rem;
font-size: 13px;
border-bottom: 1px solid #E9EDF0;
cursor: text;
},
&[disabled] {
background-color: #E4E8EC;
color: #2C3E50;
padding-left: 0.5rem;
opacity: 1;
}
}
input[type="text"] {
&[disabled], &[readonly] {
background-color: #E4E8EC;