Initial version of geolocation support

Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
This commit is contained in:
Niklas Laxström authored and Amir E. Aharoni committed 2012-08-30 15:36:51 +03:00
1 parent fde6b18e40
commit 64c26ad137
6 files changed
+63 -9

No files matched your search

+1 -1
View File
@@ -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;
+5
View File
@@ -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;