diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index 775a3b4b..72156cc9 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -305,7 +305,7 @@ Ox.ListMap = function(options, self) { */ changeplace: function(data) { self.$placeForm.values(data).show(); - self.$areaKmInput.options({value: Ox.formatArea(place.area)}); + self.$areaKmInput.options({value: Ox.formatArea(data.area)}); }, changeplaceend: function(data) { //Ox.print('ssP', self.selectedPlace); diff --git a/source/Ox.UI/js/Map/Ox.MapPlace.js b/source/Ox.UI/js/Map/Ox.MapPlace.js index e2a39135..9c800007 100644 --- a/source/Ox.UI/js/Map/Ox.MapPlace.js +++ b/source/Ox.UI/js/Map/Ox.MapPlace.js @@ -153,7 +153,7 @@ Ox.MapPlace = function(options) { that.options = function(options) { options = Ox.makeObject(arguments); Ox.forEach(options, function(value, key) { - that.key = value; + that[key] = value; }); Ox.print('map place options', that) update(true);