From: John Du Hart Date: Tue, 22 Nov 2011 15:58:28 +0000 (+0000) Subject: Reverting r103856 since it does not work. is not available at startup. X-Git-Tag: 1.31.0-rc.0~26359 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=b520984ea2a1326257ed21d43558db93f2f410fa;p=lhc%2Fweb%2Fwiklou.git Reverting r103856 since it does not work. is not available at startup. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 30cb9b7927..398cddedac 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 class is probably not the best way to do this . . . diff --git a/resources/mediawiki.page/mediawiki.page.startup.js b/resources/mediawiki.page/mediawiki.page.startup.js index d3bc94274a..6217070a78 100644 --- a/resources/mediawiki.page/mediawiki.page.startup.js +++ b/resources/mediawiki.page/mediawiki.page.startup.js @@ -5,7 +5,7 @@ /* Client profile classes for */ /* Allows for easy hiding/showing of JS or no-JS-specific UI elements */ - $( 'body' ) + $( 'html' ) .addClass('client-js' ) .removeClass( 'client-nojs' );