close modal before transition to job form

This commit is contained in:
Berkeley Martinez
2015-09-21 20:38:09 -07:00
parent 41933a8360
commit 65572d65c8

View File

@ -12,7 +12,8 @@ export default React.createClass({
mixins: [History],
goToNewJob() {
goToNewJob(onHide) {
onHide();
this.history.pushState(null, '/jobs/new');
},
@ -32,7 +33,7 @@ export default React.createClass({
<Button
block={ true }
className='signup-btn'
onClick={ this.goToNewJob }>
onClick={ () => this.goToNewJob(onHide) }>
Post a Job
</Button>
</Modal.Body>