@@ -32,6 +32,11 @@ $(document).ready(function () {
3232 $ ( "#continueBtn" ) . click ( function ( ) {
3333 var handle = $ ( "#handle" ) . val ( ) ;
3434 var country = $ ( "#country" ) . val ( ) ;
35+ if ( ! handle ) {
36+ $ ( "#error" ) . html ( "Need Username / Handle" ) ;
37+ $ ( "#error" ) . closest ( ".message" ) . fadeIn ( ) ;
38+ return ;
39+ }
3540 $ . ajax ( {
3641 url : apiServerUrl + "/validateHandle?handle=" + handle ,
3742 xhrFields : {
@@ -64,7 +69,7 @@ $(document).ready(function () {
6469 $ ( "#returnUrl" ) . val ( qs [ "returnUrl" ] ) ;
6570 $ ( "#signup" ) . submit ( ) ;
6671 submit_flag = false ;
67- setContinueButtonDisabledStatus ( true ) ;
72+ // setContinueButtonDisabledStatus(true);
6873 }
6974 } ,
7075 } ) ;
@@ -98,7 +103,7 @@ $(document).ready(function () {
98103 return ;
99104 }
100105 } ) ;
101- setContinueButtonDisabledStatus ( disableStatus ) ;
106+ // setContinueButtonDisabledStatus(disableStatus);
102107 } )
103108 . each ( function ( index , element ) {
104109 var parentObj = $ ( element ) . parent ( ) ;
@@ -112,12 +117,10 @@ $(document).ready(function () {
112117 continueBtnDisable = true ;
113118 }
114119
115- setContinueButtonDisabledStatus ( continueBtnDisable ) ;
120+ // setContinueButtonDisabledStatus(continueBtnDisable);
116121 } ) ;
117122 $ ( "#user_privacy_policy" ) . on ( "change" , function ( ) {
118- if ( ! continueBtnDisable ) {
119- setContinueButtonDisabledStatus ( ! this . checked ) ;
120- }
123+ setContinueButtonDisabledStatus ( ! this . checked ) ;
121124 } )
122125} ) ;
123126function setContinueButtonDisabledStatus ( status ) {
0 commit comments