Followup r95318, move client-(no)js classes to the body tag per discussion in bug...
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Mon, 21 Nov 2011 22:53:24 +0000 (22:53 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Mon, 21 Nov 2011 22:53:24 +0000 (22:53 +0000)
includes/OutputPage.php
resources/mediawiki.page/mediawiki.page.startup.js

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