Merge pull request #238 from mariushoch/bug/T144871
Use an empty array for quickList everywhere, not false/null
This commit is contained in:
@@ -260,7 +260,7 @@
|
|||||||
languages: this.languages,
|
languages: this.languages,
|
||||||
columns: columnsOptions[ this.getMenuWidth() ],
|
columns: columnsOptions[ this.getMenuWidth() ],
|
||||||
|
|
||||||
quickList: languagesCount > 12 ? this.options.quickList : false,
|
quickList: languagesCount > 12 ? this.options.quickList : [],
|
||||||
clickhandler: $.proxy( this.select, this ),
|
clickhandler: $.proxy( this.select, this ),
|
||||||
source: this.$languageFilter,
|
source: this.$languageFilter,
|
||||||
showRegions: this.options.showRegions,
|
showRegions: this.options.showRegions,
|
||||||
@@ -397,7 +397,7 @@
|
|||||||
onSelect: null, // Callback function to be called when a language is selected
|
onSelect: null, // Callback function to be called when a language is selected
|
||||||
searchAPI: null, // Language search API
|
searchAPI: null, // Language search API
|
||||||
languages: $.uls.data.getAutonyms(), // Languages to be used for ULS, default is all languages
|
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).
|
// The options are wide (4 columns), medium (2 columns), and narrow (1 column).
|
||||||
// If not specified, it will be set automatically.
|
// If not specified, it will be set automatically.
|
||||||
menuWidth: null,
|
menuWidth: null,
|
||||||
|
|||||||
@@ -412,7 +412,7 @@
|
|||||||
// Other values will have rendering issues.
|
// Other values will have rendering issues.
|
||||||
columns: 4,
|
columns: 4,
|
||||||
languageDecorator: null,
|
languageDecorator: null,
|
||||||
quicklist: []
|
quickList: []
|
||||||
};
|
};
|
||||||
|
|
||||||
$.fn.lcd.Constructor = LanguageCategoryDisplay;
|
$.fn.lcd.Constructor = LanguageCategoryDisplay;
|
||||||
|
|||||||
Reference in New Issue
Block a user