Hide the ULS trigger for users who disabled JS

Bug: 42500
Change-Id: I297a8d3bb9d9031e21dd6842f5d27dd54f469c29
This commit is contained in:
Amir E. Aharoni committed 2013-05-22 16:04:20 +03:00
1 parent 3cdcd26b63
commit 4221b97ab2
3 files changed
+14 -1

No files matched your search

+4 -1
View File
@@ -43,7 +43,10 @@ class UniversalLanguageSelectorHooks {
public static function addModules( $out, $skin ) {
global $wgULSGeoService;
// If extension is enabled, basic features(API, language data) available.
// Load the style for users without JS, to hide the useless links
$out->addModuleStyles( 'ext.uls.nojs' );
// If the extension is enabled, basic features (API, language data) available.
$out->addModules( 'ext.uls.init' );
if ( is_string( $wgULSGeoService ) ) {