diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index 87b891b7..8f6f03bb 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -159,7 +159,7 @@ Ox.ListMap = function(options, self) { }, { align: 'right', - format: {type: 'area', args: [0]}, + format: {type: 'area', args: []}, id: 'area', operator: '-', title: 'Area', @@ -174,20 +174,24 @@ Ox.ListMap = function(options, self) { width: 96 }, { - format: 'date', + format: function(value) { + return value.replace('T', ' ').replace('Z', ''); + }, id: 'created', operator: '-', title: 'Date Created', visible: false, - width: 96, + width: 192, }, { - format: 'date', + format: function(value) { + return value.replace('T', ' ').replace('Z', ''); + }, id: 'modified', operator: '-', title: 'Date Modified', visible: false, - width: 96, + width: 192, }, { align: 'right', @@ -346,7 +350,7 @@ Ox.ListMap = function(options, self) { self.options.places, self.selectedPlace ).name = data.value; } else { - editPlace(['name']); + !isResult && editPlace(['name']); } self.$map.value(self.selectedPlace, 'name', data.value); } @@ -374,7 +378,7 @@ Ox.ListMap = function(options, self) { self.$list.value(self.selectedPlace, 'countryCode', countryCode); } } else { - editPlace(['countryCode', 'geoname']); + !isResult && editPlace(['countryCode', 'geoname']); } self.$map.value(self.selectedPlace, 'countryCode', countryCode); self.$map.value(self.selectedPlace, 'geoname', geoname); @@ -392,10 +396,11 @@ Ox.ListMap = function(options, self) { width: 240 }).bindEvent({ change: function(data) { + var isResult = self.selectedPlace[0] == '_'; if (!self.isAsync) { } else { - editPlace(['alternativeNames']) + !isResult && editPlace(['alternativeNames']) } self.$map.value(self.selectedPlace, 'alternativeNames', data.value); }