dont fail if geoname is undefined

This commit is contained in:
j 2012-02-01 15:25:41 +00:00
parent addd277748
commit 72323febea

View file

@ -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