Gerrit Patch Uploader has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/196542

Change subject: mediawiki.page.startup: Simplify jQuery
......................................................................

mediawiki.page.startup: Simplify jQuery

Change-Id: If443fdc543a0eebcaa3d82ab92eadb39b0f0f196
---
M resources/src/mediawiki.page/mediawiki.page.startup.js
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/42/196542/1

diff --git a/resources/src/mediawiki.page/mediawiki.page.startup.js 
b/resources/src/mediawiki.page/mediawiki.page.startup.js
index 4aae606..5ae497b 100644
--- a/resources/src/mediawiki.page/mediawiki.page.startup.js
+++ b/resources/src/mediawiki.page/mediawiki.page.startup.js
@@ -4,9 +4,8 @@
 
        // Client profile classes for <html>
        // Allows for easy hiding/showing of JS or no-JS-specific UI elements
-       $( 'html' )
-               .addClass( 'client-js' )
-               .removeClass( 'client-nojs' );
+       $( document.documentElement )
+               .toggleClass( 'client-nojs client-js' );
 
        $( function () {
                mw.util.init();

-- 
To view, visit https://gerrit.wikimedia.org/r/196542
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If443fdc543a0eebcaa3d82ab92eadb39b0f0f196
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to