1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix submit to prize button

This commit is contained in:
Tim Daubenschütz 2015-08-10 10:10:43 +02:00
parent a55efc1692
commit 3ff401904b
2 changed files with 2 additions and 6 deletions

View File

@ -55,10 +55,6 @@ let SignupForm = React.createClass({
}
},
getFormData() {
return this.getQuery();
},
handleSuccess(response){
if (response.user) {
let notification = new GlobalNotificationModel(getLangText('Sign up successful'), 'success', 50000);
@ -80,7 +76,7 @@ let SignupForm = React.createClass({
className="ascribe-form-bordered"
ref='form'
url={ApiUrls.users_signup}
getFormData={this.getFormData}
getFormData={this.getQuery}
handleSuccess={this.handleSuccess}
buttons={
<button type="submit" className="btn ascribe-btn ascribe-btn-login">

View File

@ -39,7 +39,7 @@ let SubmitToPrizeButton = React.createClass({
render() {
return (
<ModalWrapper
button={this.getSubmitButton()}
trigger={this.getSubmitButton()}
handleSuccess={this.props.handleSuccess}
title={getLangText('Submit to prize')}>
<PieceSubmitToPrizeForm