File tree Expand file tree Collapse file tree
skins/base/views/templates
src/controllers/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ module.exports = React.createClass({
5353 return (
5454 < div >
5555 < form onSubmit = { this . onInitialStageSubmit } >
56- Email: < input type = "text" ref = "email" /> < br />
57- Username: < input type = "text" ref = "username" /> < br />
58- Password: < input type = "password" ref = "password" /> < br />
59- Confirm Password: < input type = "password" ref = "confirmPassword" /> < br />
56+ Email: < input type = "text" ref = "email" defaultValue = { this . savedParams . email } /> < br />
57+ Username: < input type = "text" ref = "username" defaultValue = { this . savedParams . username } /> < br />
58+ Password: < input type = "password" ref = "password" defaultValue = { this . savedParams . password } /> < br />
59+ Confirm Password: < input type = "password" ref = "confirmPassword" defaultValue = { this . savedParams . confirmPassword } /> < br />
6060 < ServerConfig ref = "serverConfig" />
6161 < input type = "submit" value = "Continue" />
6262 </ form >
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ module.exports = {
4242 } ,
4343
4444 componentWillMount : function ( ) {
45+ this . savedParams = {
46+ email : '' ,
47+ username : '' ,
48+ password : '' ,
49+ confirmPassword : ''
50+ } ;
4551 this . readNewProps ( ) ;
4652 } ,
4753
@@ -163,6 +169,7 @@ module.exports = {
163169 ev . preventDefault ( ) ;
164170
165171 var formVals = this . getRegFormVals ( ) ;
172+ this . savedParams = formVals ;
166173
167174 var badFields = { } ;
168175 if ( formVals . password != formVals . confirmPassword ) {
You can’t perform that action at this time.
0 commit comments