Changeset 281 for ether_megapoli/trunk/web/backoffice/user-script.jsp
- Timestamp:
- 12/02/11 17:03:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/backoffice/user-script.jsp
r280 r281 80 80 $.ajax( { 81 81 url: "backoffice?methodName=modifyUser&" + parametersUrl, 82 success:jQuery.proxy( this.handle ModifyUser, this ),82 success:jQuery.proxy( this.handleUser, this ), 83 83 error: jQuery.proxy( this.showErrors, [this] ) 84 84 } ); … … 117 117 this.displayWaitingUsers(); 118 118 this.displayUsers(); 119 },120 121 handleModifyUser: function( result )122 {123 this.handleUser( result );124 119 this.clearAddOrModifyUserFields(); 125 120 this.updateAddUserButtonAndTitle(); 126 127 }, 121 }, 122 128 123 // DISPLAYS ******************************************************** 129 124 displayTRForUser: function( user ) … … 142 137 tdEmail.html( user.email ); 143 138 tr.append( tdEmail ); 144 var tdPwd = $( document.createElement( "td" ) );145 tdPwd.html( user.password );146 tr.append( tdPwd );147 139 var tdRole = $( document.createElement( "td" ) ); 148 140 tdRole.html( user.role ); … … 288 280 var actualState = $( "#keepSamePassword" ).attr( 'checked' ); 289 281 $( "#password" ).attr( 'disabled', actualState ); 282 if( actualState ) 283 $( "#password" ).val( '' ); 290 284 }, 291 285 … … 298 292 $( "#add_or_modify_user" ).bind( 'click', this, jQuery.proxy( this.requestAddUser, this ) ); 299 293 $( "#add_or_modify_user" ).html( interfaceTexts["bo.add"] ); 294 $( "#password" ).attr( 'disabled', false ); 295 $( "#keepSamePassword" ).attr( 'disabled', true ); 300 296 }, 301 297 … … 307 303 $( "#add_or_modify_user" ).bind( 'click', this, jQuery.proxy( this.requestModifyUser, this ) ); 308 304 $( "#add_or_modify_user" ).html( interfaceTexts["bo.modify"] ); 305 $( "#password" ).attr( 'disabled', true ); 306 $( "#keepSamePassword" ).attr( 'disabled', false ); 309 307 }, 310 308 … … 317 315 .removeAttr( 'selected' ); 318 316 319 $( "#keepSamePassword" ).attr( 'disabled', true );320 317 this.selectRoles.selectFirst( false ); 321 318 this.selectStates.selectFirst( false );
Note: See TracChangeset
for help on using the changeset viewer.