From 8300e402cfab5d11d55d35369ae2ecf02c76cd69 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 21 Feb 2012 08:01:13 +0000 Subject: [PATCH] update place flag on define (fixes #561) --- source/Ox.UI/js/Map/Ox.ListMap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index dc8257c0..23515072 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -995,6 +995,10 @@ Ox.ListMap = function(options, self) { place.name = self.$list.value(self.options.selected, 'name'); place.id = self.options.selected; self.$map.addPlace(place); + self.$findPlaceButton.hide(); + self.$placeFlag.attr({ + src: Ox.getFlagByGeoname(place.geoname || '', 16) + }).show(); self.$placeForm.values(place).show(); self.$areaKmInput.value(Ox.formatArea(place.area)).show(); editPlace([