Make sure languages section is visible when adding ULS cog icon
Make sure element #p-lang shown. Bug: 49005 Change-Id: I4cc238f87fdce0c5813b82516599ba3c0d3bf44c
This commit is contained in:
@@ -239,7 +239,8 @@
|
|||||||
$ulsSettingsTrigger = $( '<span>' )
|
$ulsSettingsTrigger = $( '<span>' )
|
||||||
.addClass( 'uls-settings-trigger' )
|
.addClass( 'uls-settings-trigger' )
|
||||||
.attr( 'title', $.i18n( 'ext-uls-language-settings-title' ) );
|
.attr( 'title', $.i18n( 'ext-uls-language-settings-title' ) );
|
||||||
$pLang.prepend( $ulsSettingsTrigger );
|
// Append ULS cog to languages section. But make sure it is visible.
|
||||||
|
$pLang.show().prepend( $ulsSettingsTrigger );
|
||||||
|
|
||||||
// Remove the dummy link that was added to make sure that the section appears
|
// Remove the dummy link that was added to make sure that the section appears
|
||||||
$pLang.find( '.uls-p-lang-dummy' ).remove();
|
$pLang.find( '.uls-p-lang-dummy' ).remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user