mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +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')
|
||||
@ -42,4 +42,4 @@ module.exports = recl
|
||||
]
|
||||
else
|
||||
cont = [(div {className:"submitted"},"Got it. Thanks!")]
|
||||
(p {className:"email"}, cont)
|
||||
(p {className:"email"}, cont)
|
||||
|
@ -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