From 72323febea19681d270a064597bf49b9f2f313a7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 1 Feb 2012 15:25:41 +0000 Subject: [PATCH] dont fail if geoname is undefined --- source/Ox.UI/js/Map/Ox.ListMap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index a7efa8fc..6ec9ae8c 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -58,7 +58,7 @@ Ox.ListMap = function(options, self) { }, { format: function(value, data) { - return $('') + return data.geoname ? $('') .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