r112102 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112101‎ | r112102 | r112103 >
Date:12:16, 22 February 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
use utils to add class to body

see r111651#c31083
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/application.js (modified) (history)
  • /trunk/extensions/MobileFrontend/javascripts/beta_application.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js
@@ -6,7 +6,7 @@
77 var i, search, clearSearch, results, languageSelection, a,
88 sectionHeadings = document.getElementsByClassName( 'section_heading' ),
99 dismissNotification, cookieNameZeroVisibility, zeroRatedBanner, zeroRatedBannerVisibility;
10 - document.body.className = "jsEnabled";
 10+ utilities( document.body ).addClass( 'jsEnabled' );
1111 function openSectionHandler() {
1212 var sectionNumber = this.id ? this.id.split( '_' )[1] : -1;
1313 if( sectionNumber > -1 ) {
Index: trunk/extensions/MobileFrontend/javascripts/application.js
@@ -6,7 +6,7 @@
77 var i, search, clearSearch, results, languageSelection, a,
88 sectionHeadings = document.getElementsByClassName( 'section_heading' ),
99 dismissNotification, cookieNameZeroVisibility, zeroRatedBanner, zeroRatedBannerVisibility;
10 - document.body.className = "jsEnabled";
 10+ utilities( document.body ).addClass( 'jsEnabled' );
1111 function openSectionHandler() {
1212 var sectionNumber = this.id ? this.id.split( '_' )[1] : -1;
1313 if( sectionNumber > -1 ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111651display sections for people without javascript (addresses #34025)...jdlrobson17:07, 16 February 2012

Status & tagging log