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:
Santhosh Thottingal
2013-05-31 11:04:16 +05:30
parent 44dbfbba4f
commit 11fc0347ea

View File

@@ -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();