1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Merge branch 'AD-863-acl-forms-prefil-email-address-an' into AD-456-ikonotv-branded-page-for-registra

This commit is contained in:
Tim Daubenschütz 2015-08-28 12:44:02 +02:00
commit 8eec5d8f38

View File

@ -68,8 +68,12 @@ let LoanForm = React.createClass({
return this.props.id;
},
handleOnBlur(event) {
LoanContractActions.fetchLoanContract(event.target.value);
handleOnChange(event) {
let potentialEmail = event.target.value;
if(potentialEmail.match(/.*@.*/)) {
LoanContractActions.fetchLoanContract(potentialEmail);
}
},
getContractCheckbox() {
@ -151,7 +155,7 @@ let LoanForm = React.createClass({
<Property
name='loanee'
label={getLangText('Loanee Email')}
onBlur={this.handleOnBlur}
onChange={this.handleOnChange}
editable={!this.props.email}
overrideForm={!!this.props.email}>
<input