Reverting r103856 since it does not work. <body> is not available at startup.

This commit is contained in:
John Du Hart 2011-11-22 15:58:28 +00:00
parent 5e9614b762
commit b520984ea2
2 changed files with 3 additions and 3 deletions

View 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 . . .

View 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' );