Page MenuHomePhabricator

b30497.patch

Authored By
bzimport
Nov 21 2014, 11:49 PM
Size
1 KB
Referenced Files
None
Subscribers
None

b30497.patch

Index: includes/OutputPage.php
===================================================================
--- includes/OutputPage.php (revision 95102)
+++ includes/OutputPage.php (working copy)
@@ -2223,7 +2223,7 @@
$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() ) );
Index: resources/mediawiki.page/mediawiki.page.startup.js
===================================================================
--- resources/mediawiki.page/mediawiki.page.startup.js (revision 95102)
+++ resources/mediawiki.page/mediawiki.page.startup.js (working copy)
@@ -5,11 +5,13 @@
/* 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 );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7577
Default Alt Text
b30497.patch (1 KB)

Event Timeline