Skip to content

Commit

Permalink
fix a double close error
Browse files Browse the repository at this point in the history
  • Loading branch information
Romathonat committed Aug 23, 2016
1 parent 21466be commit 3b363ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/components/MessageError.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ class MessageError extends React.Component{

componentDidMount = () => {
var component = this;
$('.message .close')
$('.errorPath .close')
.on('click', function() {
$(this)
.closest('.errorPath')
.transition('fade')
;

//we delete the current message into the store
component.props.dispatch(actions.setErrorMessage('',''));
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageOk.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as actions from '../actions/actionIndex.js';
class MessageOk extends React.Component{
componentDidMount = () => {
var component = this;
$('.message .close')
$('.okMessage .close')
.on('click', function() {
$(this)
.closest('.okMessage')
Expand Down

0 comments on commit 3b363ca

Please sign in to comment.