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:
@@ -105,9 +105,6 @@ class UniversalLanguageSelectorHooks {
|
|||||||
public static function addModules( $out, $skin ) {
|
public static function addModules( $out, $skin ) {
|
||||||
global $wgULSPosition, $wgULSGeoService, $wgULSEventLogging;
|
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
|
// If EventLogging integration is enabled, load the schema module
|
||||||
// and the event logging functions module
|
// and the event logging functions module
|
||||||
if ( $wgULSEventLogging ) {
|
if ( $wgULSEventLogging ) {
|
||||||
|
|||||||
@@ -151,12 +151,6 @@
|
|||||||
"localBasePath": "resources",
|
"localBasePath": "resources",
|
||||||
"remoteExtPath": "UniversalLanguageSelector/resources"
|
"remoteExtPath": "UniversalLanguageSelector/resources"
|
||||||
},
|
},
|
||||||
"ext.uls.nojs": {
|
|
||||||
"styles": "css/ext.uls.nojs.css",
|
|
||||||
"position": "top",
|
|
||||||
"localBasePath": "resources",
|
|
||||||
"remoteExtPath": "UniversalLanguageSelector/resources"
|
|
||||||
},
|
|
||||||
"ext.uls.init": {
|
"ext.uls.init": {
|
||||||
"targets": [ "desktop" ],
|
"targets": [ "desktop" ],
|
||||||
"dependencies": [ "ext.uls.common" ]
|
"dependencies": [ "ext.uls.common" ]
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
|
||||||
@@ -56,3 +56,8 @@ body.rtl li#pt-uls {
|
|||||||
#uls-settings-block div.input-settings-block:hover {
|
#uls-settings-block div.input-settings-block:hover {
|
||||||
color: #252525;
|
color: #252525;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't show it to users who disabled JS */
|
||||||
|
.client-nojs #pt-uls {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user