Merge pull request #238 from mariushoch/bug/T144871

Use an empty array for quickList everywhere, not false/null
This commit is contained in:
Amir E. Aharoni
2016-09-07 11:49:10 +03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -260,7 +260,7 @@
languages: this.languages,
columns: columnsOptions[ this.getMenuWidth() ],
quickList: languagesCount > 12 ? this.options.quickList : false,
quickList: languagesCount > 12 ? this.options.quickList : [],
clickhandler: $.proxy( this.select, this ),
source: this.$languageFilter,
showRegions: this.options.showRegions,
@@ -397,7 +397,7 @@
onSelect: null, // Callback function to be called when a language is selected
searchAPI: null, // Language search API
languages: $.uls.data.getAutonyms(), // Languages to be used for ULS, default is all languages
quickList: null, // Array of language codes or function that returns such
quickList: [], // Array of language codes or function that returns such
// The options are wide (4 columns), medium (2 columns), and narrow (1 column).
// If not specified, it will be set automatically.
menuWidth: null,

View File

@@ -412,7 +412,7 @@
// Other values will have rendering issues.
columns: 4,
languageDecorator: null,
quicklist: []
quickList: []
};
$.fn.lcd.Constructor = LanguageCategoryDisplay;