From a773c0eed27779b7e43fc7c983f0d1d5a782a680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 25 Sep 2018 11:41:35 +0200 Subject: [PATCH] Allow mobile TOC on pages in all namespaces It was limited to the main namespace since its introduction in Ieabe8f7071696cde6afbdc6df853aacdb741a4a3. Unfortunately that commit does not explain the reason. It should be shown e.g. on user pages (so that sandbox pages look like the real article) or on project pages (many policy or help pages on Wikipedia are long and would benefit from it). It looks like some of the CSS code already assumed that the TOC would be shown in all namespaces (space for it was reserved using a 'visibility: hidden;' element on all pages). Bug: T205312 Change-Id: Id6935f5a7a3701c1c7a38fb37b48b6a3bbc80393 --- resources/skins.minerva.scripts/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.minerva.scripts/init.js b/resources/skins.minerva.scripts/init.js index 39a3ccf..5571312 100644 --- a/resources/skins.minerva.scripts/init.js +++ b/resources/skins.minerva.scripts/init.js @@ -89,7 +89,7 @@ * @ignore */ function loadTabletModules() { - if ( browser.isWideScreen() && page.inNamespace( '' ) ) { + if ( browser.isWideScreen() ) { mw.loader.using( 'skins.minerva.tablet.scripts' ); } }