Reverting r103856 since it does not work. <body> is not available at startup.
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 22 Nov 2011 15:58:28 +0000 (15:58 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 22 Nov 2011 15:58:28 +0000 (15:58 +0000)
includes/OutputPage.php
resources/mediawiki.page/mediawiki.page.startup.js

index 30cb9b7..398cdde 100644 (file)
@@ -2335,7 +2335,7 @@ $templates
                        $this->addModuleStyles( 'mediawiki.legacy.wikiprintable' );
                }
 
-               $ret = Html::htmlHeader( array( 'lang' => $this->getLanguage()->getCode(), 'dir' => $userdir ) );
+               $ret = Html::htmlHeader( array( 'lang' => $this->getLanguage()->getCode(), 'dir' => $userdir, 'class' => 'client-nojs' ) );
 
                if ( $this->getHTMLTitle() == '' ) {
                        $this->setHTMLTitle( $this->msg( 'pagetitle', $this->getPageTitle() ) );
@@ -2368,7 +2368,7 @@ $templates
                $bodyAttrs = array();
 
                # Classes for LTR/RTL directionality support
-               $bodyAttrs['class'] = "mediawiki $userdir sitedir-$sitedir client-nojs";
+               $bodyAttrs['class'] = "mediawiki $userdir sitedir-$sitedir";
 
                if ( $this->getLanguage()->capitalizeAllNouns() ) {
                        # A <body> class is probably not the best way to do this . . .
index d3bc942..6217070 100644 (file)
@@ -5,7 +5,7 @@
        /* Client profile classes for <html> */
        /* Allows for easy hiding/showing of JS or no-JS-specific UI elements */
 
-       $( 'body' )
+       $( 'html' )
                .addClass('client-js' )
                .removeClass( 'client-nojs' );