1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-10-30 07:40:05 -04:00

Enable Combobox autocomplete, fix security Combobox display names

This commit is contained in:
Aaron Lindsay 2016-10-06 06:53:49 -04:00
parent 19932812e4
commit 402a15ef12
3 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,7 @@ module.exports = React.createClass({
onChange={this.handleAccountChange}
ref="account"
disabled={this.props.disabled}
suggest
className={className} />
);
}

View File

@ -427,6 +427,7 @@ const AddEditTransactionModal = React.createClass({
<Col componentClass={ControlLabel} xs={2}>Status</Col>
<Col xs={10}>
<Combobox
suggest
data={TransactionStatusList}
valueField='StatusId'
textField='Name'

View File

@ -130,9 +130,10 @@ const AddEditAccountModal = React.createClass({
<Col componentClass={ControlLabel} xs={2}>Security</Col>
<Col xs={10}>
<Combobox
suggest
data={this.props.security_list}
valueField='SecurityId'
textField={item => item.Name + " - " + item.Description}
textField={item => typeof item === 'string' ? item : item.Name + " - " + item.Description}
defaultValue={this.state.security}
onChange={this.handleSecurityChange}
ref="security" />
@ -142,6 +143,7 @@ const AddEditAccountModal = React.createClass({
<Col componentClass={ControlLabel} xs={2}>Account Type</Col>
<Col xs={10}>
<Combobox
suggest
data={AccountTypeList}
valueField='TypeId'
textField='Name'