Compact Links: Redesign the more languages button

Change-Id: Ie4d1cb5bf89ac47bac141b0f5a83452cfa9a0783
This commit is contained in:
Niharika Kohli
2014-09-30 21:00:53 +05:30
committed by Santhosh Thottingal
parent 0092b712bd
commit bdb7b9c3d3
4 changed files with 16 additions and 20 deletions

View File

@@ -287,20 +287,16 @@
* Add the trigger at the bottom of the language list
*/
addTrigger: function () {
var $trigger, $triggerLabel;
var $trigger;
$trigger = $( '<button>' )
.addClass( 'mw-interlanguage-selector mw-ui-button active' )
.html( '&#8230' ); // '…'
$triggerLabel = $( '<label>' )
.attr( 'id', 'more-lang-label' )
.text( $.i18n(
.html( $.i18n(
'ext-uls-compact-link-count',
mw.language.convertNumber( this.listSize - this.compactSize )
) );
this.$interlanguageList.append( $trigger, $triggerLabel );
this.$interlanguageList.append( $trigger );
this.$trigger = $trigger;
},