@@ -31,7 +31,7 @@ goog.require('firebaseui.auth.ui.page.Base');
31
31
/**
32
32
* Password sign-up UI component.
33
33
* @param {?string } tosUrl The ToS URL.
34
- * @param {boolean } showDisplayName Whether to show the display name.
34
+ * @param {boolean } requireDisplayName Whether to show the display name.
35
35
* @param {function() } onSubmitClick Callback to invoke when the submit button
36
36
* is clicked.
37
37
* @param {function()= } opt_onCancelClick Callback to invoke when the cancel
@@ -44,7 +44,7 @@ goog.require('firebaseui.auth.ui.page.Base');
44
44
*/
45
45
firebaseui . auth . ui . page . PasswordSignUp = function (
46
46
tosUrl ,
47
- showDisplayName ,
47
+ requireDisplayName ,
48
48
onSubmitClick ,
49
49
opt_onCancelClick ,
50
50
opt_email ,
@@ -56,7 +56,7 @@ firebaseui.auth.ui.page.PasswordSignUp = function(
56
56
firebaseui . auth . soy2 . page . passwordSignUp ,
57
57
{
58
58
email : opt_email ,
59
- showDisplayName : showDisplayName ,
59
+ requireDisplayName : requireDisplayName ,
60
60
name : opt_name ,
61
61
tosUrl : tosUrl ,
62
62
allowCancel : ! ! opt_onCancelClick
@@ -65,7 +65,7 @@ firebaseui.auth.ui.page.PasswordSignUp = function(
65
65
'passwordSignUp' ) ;
66
66
this . onSubmitClick_ = onSubmitClick ;
67
67
this . onCancelClick_ = opt_onCancelClick ;
68
- this . showDisplayName_ = showDisplayName ;
68
+ this . requireDisplayName_ = requireDisplayName ;
69
69
} ;
70
70
goog . inherits ( firebaseui . auth . ui . page . PasswordSignUp ,
71
71
firebaseui . auth . ui . page . Base ) ;
@@ -74,7 +74,7 @@ goog.inherits(firebaseui.auth.ui.page.PasswordSignUp,
74
74
/** @override */
75
75
firebaseui . auth . ui . page . PasswordSignUp . prototype . enterDocument = function ( ) {
76
76
this . initEmailElement ( ) ;
77
- if ( this . showDisplayName_ ) {
77
+ if ( this . requireDisplayName_ ) {
78
78
this . initNameElement ( ) ;
79
79
}
80
80
this . initNewPasswordElement ( ) ;
@@ -98,7 +98,7 @@ firebaseui.auth.ui.page.PasswordSignUp.prototype.disposeInternal = function() {
98
98
*/
99
99
firebaseui . auth . ui . page . PasswordSignUp . prototype . setupFocus_ = function ( ) {
100
100
// Focus order.
101
- if ( this . showDisplayName_ ) {
101
+ if ( this . requireDisplayName_ ) {
102
102
this . focusToNextOnEnter ( this . getEmailElement ( ) , this . getNameElement ( ) ) ;
103
103
this . focusToNextOnEnter ( this . getNameElement ( ) , this . getNewPasswordElement ( ) ) ;
104
104
} else {
@@ -115,7 +115,7 @@ firebaseui.auth.ui.page.PasswordSignUp.prototype.setupFocus_ = function() {
115
115
// Auto focus.
116
116
if ( ! firebaseui . auth . ui . element . getInputValue ( this . getEmailElement ( ) ) ) {
117
117
this . getEmailElement ( ) . focus ( ) ;
118
- } else if ( this . showDisplayName_ &&
118
+ } else if ( this . requireDisplayName_ &&
119
119
! firebaseui . auth . ui . element . getInputValue ( this . getNameElement ( ) ) ) {
120
120
this . getNameElement ( ) . focus ( ) ;
121
121
} else {
0 commit comments