Avoid showing suggested languages header if the list is empty

This commit is contained in:
Niklas Laxström
2016-09-02 15:45:14 +02:00
parent 0e253cb312
commit cb85cda10e

View File

@@ -316,7 +316,7 @@
this.options.quickList = this.options.quickList(); this.options.quickList = this.options.quickList();
} }
if ( !this.options.quickList ) { if ( !this.options.quickList.length ) {
this.cachedQuicklist = $( [] ); this.cachedQuicklist = $( [] );
return this.cachedQuicklist; return this.cachedQuicklist;
} }
@@ -411,7 +411,8 @@
// Other supported values are 1 and 2. // Other supported values are 1 and 2.
// Other values will have rendering issues. // Other values will have rendering issues.
columns: 4, columns: 4,
languageDecorator: null languageDecorator: null,
quicklist: []
}; };
$.fn.lcd.Constructor = LanguageCategoryDisplay; $.fn.lcd.Constructor = LanguageCategoryDisplay;