From 43aeec758cf2c99a474057b0dbb1153b5d16b52f Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 21 Feb 2012 08:01:57 +0000 Subject: [PATCH] update place flag on define (fixes #563) --- 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([