Changeset 416 for tapas/web/resources/js/classesForJQuery/LoginButton.js
- Timestamp:
- 03/15/12 18:54:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/resources/js/classesForJQuery/LoginButton.js
r413 r416 33 33 this.inscriptionText = param.inscriptionText ? param.inscriptionText : loginTexts["login.inscription"]; 34 34 this.errorText = param.errorText ? param.errorText : loginTexts[this.errors]; 35 36 this.containerMainErrors = $( "#errors" ); 35 37 }, 36 38 … … 111 113 112 114 var divErrors = $( document.createElement( "div" ) ); 113 divErrors.attr( {id:"errors ", class:"containerErrors"} );115 divErrors.attr( {id:"errorsLogin", class:"containerErrors"} ); 114 116 containerLoginForm.append( divErrors ); 115 this.containerErrors = $( "#errors " );117 this.containerErrors = $( "#errorsLogin" ); 116 118 }, 117 119 … … 175 177 this.parent.empty(); 176 178 this.display(); 179 this.containerMainErrors.hide(); 177 180 }, 178 181 179 182 displayLoginErrors: function ( text ) 180 183 { 181 $( "#errors" ).show();182 $( "#errors" ).html( text );184 this.containerErrors.show(); 185 this.containerErrors.html( text ); 183 186 }, 184 187
Note: See TracChangeset
for help on using the changeset viewer.