Fix some bugs
This commit is contained in:
parent
e4bd7d3ced
commit
c538f145b1
@ -193,7 +193,7 @@ class RouteSearch extends Component {
|
|||||||
<select
|
<select
|
||||||
name="hour"
|
name="hour"
|
||||||
value={this.state.hour}
|
value={this.state.hour}
|
||||||
onChange={(evt) => this.setState({hour: evt.target.value}) } disabled={departNow}
|
onChange={(evt) => this.setState({hour: parseInt(evt.target.value)}) } disabled={departNow}
|
||||||
>
|
>
|
||||||
{ _.map(_.range(1, 13), (hour) => { return <option key={`h-${hour}`} value={hour}>{hour}</option>;}) }
|
{ _.map(_.range(1, 13), (hour) => { return <option key={`h-${hour}`} value={hour}>{hour}</option>;}) }
|
||||||
</select>
|
</select>
|
||||||
@ -201,7 +201,7 @@ class RouteSearch extends Component {
|
|||||||
<select
|
<select
|
||||||
name="min"
|
name="min"
|
||||||
value={this.state.min}
|
value={this.state.min}
|
||||||
onChange={(evt) => this.setState({min: evt.target.value}) } disabled={departNow}
|
onChange={(evt) => this.setState({min: parseInt(evt.target.value)}) } disabled={departNow}
|
||||||
>
|
>
|
||||||
{ _.map(_.range(0, 60), (min) => { return <option key={`m-${min}`} value={min}>{min}</option>;}) }
|
{ _.map(_.range(0, 60), (min) => { return <option key={`m-${min}`} value={min}>{min}</option>;}) }
|
||||||
</select>
|
</select>
|
||||||
|
@ -14,12 +14,6 @@ export class Subscription {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initializebartinfo() {
|
initializebartinfo() {
|
||||||
/*
|
|
||||||
api.bind('/primary', 'PUT', api.authTokens.ship, 'bartinfo',
|
|
||||||
this.handleEvent.bind(this),
|
|
||||||
this.handleError.bind(this));
|
|
||||||
*/
|
|
||||||
|
|
||||||
api.bind("/routes", "PUT", api.authTokens.ship, "bartinfo",
|
api.bind("/routes", "PUT", api.authTokens.ship, "bartinfo",
|
||||||
this.handleEvent.bind(this),
|
this.handleEvent.bind(this),
|
||||||
this.handleError.bind(this));
|
this.handleError.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user