Don't show the "permissions error" page after a user self-removes rights
[lhc/web/wiklou.git] / resources / mediawiki.special / mediawiki.special.userLogin.signup.js
1 /**
2 * JavaScript for Special:UserLogin/signup
3 */
4 jQuery( document ).ready( function ( $ ) {
5 $( '#wpCreateaccountMail' )
6 .on( 'change', function() {
7 $( '.mw-row-password' ).toggle( !$( this ).attr( 'checked' ) );
8 } )
9 .trigger( 'change' );
10 } );