Fixes for empty interlanguage links list
* Change the title near the icon to 'Language'. * Remove the empty box in the Monobook skin. Bug: 47972 Bug: 47967 Change-Id: Ie6930509ed7f200cf0bffda91b8d9fd58f1bed8b
This commit is contained in:
@@ -40,8 +40,21 @@
|
||||
.addClass( 'uls-trigger' )
|
||||
.attr( 'title', $.i18n( 'ext-uls-language-settings-title' ) )
|
||||
);
|
||||
|
||||
// Remove the dummy link that was added to make sure that the section appears
|
||||
$pLang.find( '.uls-p-lang-dummy' ).remove();
|
||||
|
||||
if ( !$pLang.find( 'div ul' ).children().length ) {
|
||||
// Replace the title of the interlanguage links
|
||||
// area if there are no interlanguage links
|
||||
$pLang.find( 'h3' )
|
||||
.text( mw.msg( 'uls-plang-title-languages' ) );
|
||||
|
||||
// Remove the empty box that appears in the monobook skin
|
||||
if ( mw.config.get( 'skin' ) === 'monobook' ) {
|
||||
$pLang.find( 'div.pBody' ).remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$ulsTrigger = $( '.uls-trigger' );
|
||||
|
||||
Reference in New Issue
Block a user