https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108339

Revision: 108339
Author:   krinkle
Date:     2012-01-08 00:22:44 +0000 (Sun, 08 Jan 2012)
Log Message:
-----------
Re-do svn copy from r106516 preserving history

Added Paths:
-----------
    trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js

Removed Paths:
-------------
    trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js

Deleted: 
trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js
===================================================================
--- trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js   
2012-01-07 23:51:48 UTC (rev 108338)
+++ trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js   
2012-01-08 00:22:44 UTC (rev 108339)
@@ -1,38 +0,0 @@
-/*
- * JavaScript for Special:ChangeEmail
- */
-( function( $, mw ) {
-/**
- * Given an email validity status (true, false, null) update the label CSS 
class
- */
-var updateMailValidityLabel = function( mail ) {
-       var     isValid = mw.util.validateEmail( mail ),
-               $label = $( '#mw-emailaddress-validity' );
-
-       // We allow empty address
-       if( isValid === null ) {
-               $label.text( '' ).removeClass( 'valid invalid' );
-
-       // Valid
-       } else if ( isValid ) {
-               $label.text( mw.msg( 'email-address-validity-valid' ) 
).addClass( 'valid' ).removeClass( 'invalid' );
-
-       // Not valid
-       } else {
-               $label.text( mw.msg( 'email-address-validity-invalid' ) 
).addClass( 'invalid' ).removeClass( 'valid' );
-       }
-};
-
-// 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() {
-       if ( $( '#mw-emailaddress-validity' ).length === 0 ) {
-               $(this).after( '<label for="wpNewEmail" 
id="mw-emailaddress-validity"></label>' );
-       }
-       updateMailValidityLabel( $(this).val() );
-       $(this).keyup( function() {
-               updateMailValidityLabel( $(this).val() );
-       } );
-} );
-} )( jQuery, mediaWiki );
\ No newline at end of file

Copied: 
trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js (from 
rev 95467, 
trunk/phase3/resources/mediawiki.special/mediawiki.special.preferences.js)
===================================================================
--- trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js   
                        (rev 0)
+++ trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js   
2012-01-08 00:22:44 UTC (rev 108339)
@@ -0,0 +1,40 @@
+/*
+ * JavaScript for Special:ChangeEmail
+ */
+( function( $, mw ) {
+
+/**
+ * Given an email validity status (true, false, null) update the label CSS 
class
+ */
+var updateMailValidityLabel = function( mail ) {
+       var     isValid = mw.util.validateEmail( mail ),
+               $label = $( '#mw-emailaddress-validity' );
+
+       // We allow empty address
+       if( isValid === null ) {
+               $label.text( '' ).removeClass( 'valid invalid' );
+
+       // Valid
+       } else if ( isValid ) {
+               $label.text( mw.msg( 'email-address-validity-valid' ) 
).addClass( 'valid' ).removeClass( 'invalid' );
+
+       // Not valid
+       } else {
+               $label.text( mw.msg( 'email-address-validity-invalid' ) 
).addClass( 'invalid' ).removeClass( 'valid' );
+       }
+};
+
+// 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
+$( '#mw-input-wpemailaddress' ).one( 'blur', function() {
+       if ( $( '#mw-emailaddress-validity' ).length === 0 ) {
+               $(this).after( '<label for="mw-input-wpemailaddress" 
id="mw-emailaddress-validity"></label>' );
+       }
+       updateMailValidityLabel( $(this).val() );
+       $(this).keyup( function() {
+               updateMailValidityLabel( $(this).val() );
+       } );
+} );
+
+} )( jQuery, mediaWiki );


Property changes on: 
trunk/phase3/resources/mediawiki.special/mediawiki.special.changeemail.js
___________________________________________________________________
Added: svn:mergeinfo
   + 
/branches/REL1_15/phase3/resources/mediawiki.special/mediawiki.special.preferences.js:51646
/branches/REL1_17/phase3/resources/mediawiki.special/mediawiki.special.preferences.js:81445,81448
/branches/new-installer/phase3/resources/mediawiki.special/mediawiki.special.preferences.js:43664-66004
/branches/sqlite/resources/mediawiki.special/mediawiki.special.preferences.js:58211-58321
Added: svn:eol-style
   + native


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to