mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
close modal before transition to job form
This commit is contained in:
parent
41933a8360
commit
65572d65c8
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user