From: Krinkle Date: Sun, 8 Jan 2012 00:22:44 +0000 (+0000) Subject: Re-do svn copy from r106516 preserving history X-Git-Tag: 1.31.0-rc.0~25439 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=96ec13479a913bc63fb5679f9cc6c00785ab095c;p=lhc%2Fweb%2Fwiklou.git Re-do svn copy from r106516 preserving history --- diff --git a/resources/mediawiki.special/mediawiki.special.changeemail.js b/resources/mediawiki.special/mediawiki.special.changeemail.js index 578a15e201..9918698b85 100644 --- a/resources/mediawiki.special/mediawiki.special.changeemail.js +++ b/resources/mediawiki.special/mediawiki.special.changeemail.js @@ -2,6 +2,7 @@ * JavaScript for Special:ChangeEmail */ ( function( $, mw ) { + /** * Given an email validity status (true, false, null) update the label CSS class */ @@ -26,13 +27,14 @@ var updateMailValidityLabel = function( mail ) { // Lame tip to let user know if its email is valid. See bug 22449 // Only bind once for 'blur' so that the user can fill it in without errors // After that look at every keypress for direct feedback if it was invalid onblur -$( '#wpNewEmail' ).one( 'blur', function() { +$( '#mw-input-wpemailaddress' ).one( 'blur', function() { if ( $( '#mw-emailaddress-validity' ).length === 0 ) { - $(this).after( '' ); + $(this).after( '' ); } updateMailValidityLabel( $(this).val() ); $(this).keyup( function() { updateMailValidityLabel( $(this).val() ); } ); } ); -} )( jQuery, mediaWiki ); \ No newline at end of file + +} )( jQuery, mediaWiki );