update place flag on define (fixes #561)

This commit is contained in:
rlx 2012-02-21 08:01:13 +00:00
parent 7019a7994b
commit 8300e402cf

View file

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