* Default cookie lifetime ($wgCookieExpiration) is increased to 180 days.
=== New features in 1.19 ===
+* (bug 30497) Add client-nojs and client-js classes on document element
+ to let styles easily hide or show things based on general JS availability
* (bug 19838) Possibility to get all interwiki prefixes if the interwiki
cache is used.
* $wgDnsBlacklistUrls now accepts an array with url and key as the
$this->addModuleStyles( 'mediawiki.legacy.wikiprintable' );
}
- $ret = Html::htmlHeader( array( 'lang' => $this->getLang()->getCode(), 'dir' => $userdir ) );
+ $ret = Html::htmlHeader( array( 'lang' => $this->getLang()->getCode(), 'dir' => $userdir, 'class' => 'client-nojs' ) );
if ( $this->getHTMLTitle() == '' ) {
$this->setHTMLTitle( wfMsg( 'pagetitle', $this->getPageTitle() ) );
/* Client profile classes for <html> */
var prof = $.client.profile();
- $( 'html' ).addClass(
- 'client-' + prof.name
- + ' client-' + prof.name + '-' + prof.versionBase
- + ' client-' + prof.layout
- + ' client-' + prof.platform
- );
+ $( 'html' )
+ .addClass(
+ 'client-' + prof.name
+ + ' client-' + prof.name + '-' + prof.versionBase
+ + ' client-' + prof.layout
+ + ' client-' + prof.platform
+ + ' client-js' )
+ .removeClass( 'client-nojs' );
} )( jQuery );