Integrate ext.uls.nojs into ext.uls.pt

The CSS hiding for non-JavaScript clients is only necessary when the buttons
get added.

Change-Id: I6e43e39d29c093a19f3e8355d657f162f9a62736
This commit is contained in:
Fomafix
2016-09-15 17:51:51 +02:00
committed by Nikerabbit
parent 1240a62ca0
commit fda55e2ab1
4 changed files with 5 additions and 13 deletions

View File

@@ -105,9 +105,6 @@ class UniversalLanguageSelectorHooks {
public static function addModules( $out, $skin ) {
global $wgULSPosition, $wgULSGeoService, $wgULSEventLogging;
// Load the style for users without JS, to hide the useless links
$out->addModuleStyles( 'ext.uls.nojs' );
// If EventLogging integration is enabled, load the schema module
// and the event logging functions module
if ( $wgULSEventLogging ) {

View File

@@ -151,12 +151,6 @@
"localBasePath": "resources",
"remoteExtPath": "UniversalLanguageSelector/resources"
},
"ext.uls.nojs": {
"styles": "css/ext.uls.nojs.css",
"position": "top",
"localBasePath": "resources",
"remoteExtPath": "UniversalLanguageSelector/resources"
},
"ext.uls.init": {
"targets": [ "desktop" ],
"dependencies": [ "ext.uls.common" ]

View File

@@ -1,4 +0,0 @@
/* Don't show it to users who disabled JS */
.client-nojs #pt-uls { /* stylelint-disable-line selector-no-id */
display: none;
}

View File

@@ -56,3 +56,8 @@ body.rtl li#pt-uls {
#uls-settings-block div.input-settings-block:hover {
color: #252525;
}
/* Don't show it to users who disabled JS */
.client-nojs #pt-uls {
display: none;
}