mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
fixed email component
This commit is contained in:
parent
29835e1fe0
commit
e21a202fbf
@ -29,7 +29,7 @@ module.exports = recl
|
||||
@$email.addClass 'error'
|
||||
|
||||
submit: ->
|
||||
$.post @props.dataPath,{email:@$email.text()},() ->
|
||||
$.post @props.dataPath,{email:@$email.val()},() =>
|
||||
@setState {submit:true}
|
||||
|
||||
componentDidMount: -> @$email = $('input.email')
|
||||
|
@ -506,12 +506,14 @@ module.exports = recl({
|
||||
},
|
||||
submit: function() {
|
||||
return $.post(this.props.dataPath, {
|
||||
email: this.$email.text()
|
||||
}, function() {
|
||||
return this.setState({
|
||||
submit: true
|
||||
});
|
||||
});
|
||||
email: this.$email.val()
|
||||
}, (function(_this) {
|
||||
return function() {
|
||||
return _this.setState({
|
||||
submit: true
|
||||
});
|
||||
};
|
||||
})(this));
|
||||
},
|
||||
componentDidMount: function() {
|
||||
return this.$email = $('input.email');
|
||||
|
Loading…
Reference in New Issue
Block a user