Initial version of geolocation support
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
This commit is contained in:
committed by
Amir E. Aharoni
parent
fde6b18e40
commit
64c26ad137
@@ -335,7 +335,7 @@
|
||||
onSelect: null, // Callback function to be called when a language is selected
|
||||
searchAPI: null, // Language search API
|
||||
languages: $.uls.data.autonyms(), // Languages to be used for ULS, default is all languages
|
||||
quickList : null
|
||||
quickList: null // Array of language codes of function that returns such
|
||||
};
|
||||
|
||||
$.fn.uls.Constructor = ULS;
|
||||
|
||||
@@ -130,9 +130,14 @@
|
||||
},
|
||||
|
||||
quicklist: function() {
|
||||
if ( $.isFunction( this.options.quickList ) ) {
|
||||
this.options.quickList = this.options.quickList();
|
||||
}
|
||||
|
||||
if ( !this.options.quickList ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var $column;
|
||||
var quickList = this.options.quickList;
|
||||
var quickListLength = ( quickList.length <= 16 ) ? quickList.length : 16;
|
||||
|
||||
Reference in New Issue
Block a user