don't require size in Ox.GetFlagBy...()
This commit is contained in:
parent
47976fb6fb
commit
4271598944
1 changed files with 2 additions and 0 deletions
|
@ -177,6 +177,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
};
|
||||
|
||||
Ox.getFlagByCountryCode = function(code, size) {
|
||||
size = size || 16;
|
||||
return Ox.PATH + 'Ox.Geo/png/flags/' + size + '/' + code + '.png';
|
||||
};
|
||||
|
||||
|
@ -190,6 +191,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
Ox.getFlagByGeoname = function(geoname, size) {
|
||||
var country = Ox.getCountryByGeoname(geoname),
|
||||
code = country ? country.code : 'NTHH';
|
||||
size = size || 16;
|
||||
return Ox.PATH + 'Ox.Geo/png/flags/' + size + '/' + code + '.png';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue