dont fail if geoname is undefined
This commit is contained in:
parent
addd277748
commit
72323febea
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ Ox.ListMap = function(options, self) {
|
|||
},
|
||||
{
|
||||
format: function(value, data) {
|
||||
return $('<img>')
|
||||
return data.geoname ? $('<img>')
|
||||
.attr({
|
||||
src: Ox.getFlagByGeoname(data.geoname, 16)
|
||||
})
|
||||
|
@ -68,7 +68,7 @@ Ox.ListMap = function(options, self) {
|
|||
borderRadius: '4px',
|
||||
marginLeft: '-3px',
|
||||
marginTop: 0
|
||||
});
|
||||
}) : '';
|
||||
},
|
||||
id: 'countryCode',
|
||||
resizable: false, // fixme: implement
|
||||
|
|
Loading…
Reference in a new issue