traversal indention. Follow-up r79924
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 10 Jan 2011 04:47:38 +0000 (04:47 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 10 Jan 2011 04:47:38 +0000 (04:47 +0000)
resources/mediawiki.special/mediawiki.special.preferences.js
resources/mediawiki.util/mediawiki.util.js

index ad4e0a5..f919f39 100644 (file)
@@ -7,37 +7,38 @@ $( '#preferences' )
        .addClass( 'jsprefs' )
        .before( $( '<ul id="preftoc"></ul>' ) )
        .children( 'fieldset' )
-       .hide()
-       .addClass( 'prefsection' )
-       .children( 'legend' )
-       .addClass( 'mainLegend' )
-       .each( function( i ) {
-               $(this).parent().attr( 'id', 'prefsection-' + i );
-               if ( i === 0 ) {
-                       $(this).parent().show();
-               }
-               $( '#preftoc' ).append(
-                       $( '<li></li>' )
-                               .addClass( i === 0 ? 'selected' : null )
-                               .append(
-                                       $( '<a></a>')
-                                               .text( $(this).text() )
-                                               .attr( 'href', '#prefsection-' + i )
-                                               .mousedown( function( e ) {
-                                                       $(this).parent().parent().find( 'li' ).removeClass( 'selected' );
-                                                       $(this).parent().addClass( 'selected' );
-                                                       e.preventDefault();
-                                                       return false;
-                                               } )
-                                               .click( function( e ) {
-                                                       $( '#preferences > fieldset' ).hide();
-                                                       $( '#prefsection-' + i ).show();
-                                                       e.preventDefault();
-                                                       return false;
-                                               } )
-                               )
-               );
-       } );
+               .hide()
+               .addClass( 'prefsection' )
+               .children( 'legend' )
+                       .addClass( 'mainLegend' )
+                       .each( function( i ) {
+                                       $(this).parent().attr( 'id', 'prefsection-' + i );
+                                       if ( i === 0 ) {
+                                               $(this).parent().show();
+                                       }
+                                       $( '#preftoc' ).append(
+                                               $( '<li></li>' )
+                                                       .addClass( i === 0 ? 'selected' : null )
+                                                       .append(
+                                                               $( '<a></a>')
+                                                                       .text( $(this).text() )
+                                                                       .attr( 'href', '#prefsection-' + i )
+                                                                       .mousedown( function( e ) {
+                                                                               $(this).parent().parent().find( 'li' ).removeClass( 'selected' );
+                                                                               $(this).parent().addClass( 'selected' );
+                                                                               e.preventDefault();
+                                                                               return false;
+                                                                       } )
+                                                                       .click( function( e ) {
+                                                                               $( '#preferences > fieldset' ).hide();
+                                                                               $( '#prefsection-' + i ).show();
+                                                                               e.preventDefault();
+                                                                               return false;
+                                                                       } )
+                                                       )
+                                       );
+                               }
+                       );
 
 /**
  * Given an email validity status (true, false, null) update the label CSS class
index 6668716..b11847c 100644 (file)
                                                 "|" / "}" /
                                                 "~"
                        */
-                       var     rfc5322_atext = "a-z0-9!#$%&'*+-/=?^_`{|}Ñ~",
+                       var     rfc5322_atext = "a-z0-9!#$%&'*+-/=?^_`{|}Ð~",
                
                        /**
                         * Next define the RFC 1034 'ldh-str'