change sort function for geonames
This commit is contained in:
parent
96b597d324
commit
86411a6e22
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ Ox.ListMap = function(options, self) {
|
|||
id: 'geoname',
|
||||
removable: false,
|
||||
map: function(v) {
|
||||
return v.split(', ').reverse().join(', ')
|
||||
var names = v.split(', ');
|
||||
if (!Ox.getCountryByGeoname(names[names.length - 1])) {
|
||||
names.push('~');
|
||||
}
|
||||
return names.reverse().join(', ')
|
||||
},
|
||||
operator: '+',
|
||||
title: 'Geoname',
|
||||
|
|
Loading…
Reference in a new issue