Fix Bug 39535 Recent languages in languages settings
* Refactor the code for frequent languages and introduce mw.uls.getFrequentLanguageList * Use it for showing previous languages in language settings * Show the frequent/common language list in the language selector opened from display settings. Change-Id: Ic0f8ea6b9e9ba137b22649e8425fce8014ad456c
This commit is contained in:
committed by
Niklas Laxström
parent
c3201d95a7
commit
472cb8ba55
@@ -141,9 +141,6 @@
|
||||
// Pick only the first elements, because we don't have room for more
|
||||
var that = this,
|
||||
quickList = this.options.quickList;
|
||||
quickList = $.grep( quickList, function( langCode, index ) {
|
||||
return that.options.languages[langCode];
|
||||
} );
|
||||
quickList = quickList.slice( 0, 16 );
|
||||
quickList.sort( $.uls.data.sortByAutonym );
|
||||
var $quickListsection = $( '<div>' ).addClass( 'twelve columns uls-lcd-region-section' ).prop( 'id', 'uls-lcd-quicklist' );
|
||||
|
||||
Reference in New Issue
Block a user