%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/resources/src/mediawiki.special.preferences.ooui/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/resources/src/mediawiki.special.preferences.ooui/personalEmail.js

/*!
 * JavaScript for Special:Preferences: Email preferences better UX
 */
( function () {
	$( function () {
		var allowEmail, allowEmailFromNewUsers;

		allowEmail = $( '#wpAllowEmail' );
		allowEmailFromNewUsers = $( '#wpAllowEmailFromNewUsers' );

		function toggleDisabled() {
			if ( allowEmail.is( ':checked' ) && allowEmail.is( ':enabled' ) ) {
				allowEmailFromNewUsers.prop( 'disabled', false );
			} else {
				allowEmailFromNewUsers.prop( 'disabled', true );
			}
		}

		if ( allowEmail ) {
			allowEmail.on( 'change', toggleDisabled );
			toggleDisabled();
		}
	} );
}() );

Zerion Mini Shell 1.0