some smaller fixes
This commit is contained in:
parent
120a28eaa2
commit
b299674717
1 changed files with 13 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue