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',
|
align: 'right',
|
||||||
format: {type: 'area', args: [0]},
|
format: {type: 'area', args: []},
|
||||||
id: 'area',
|
id: 'area',
|
||||||
operator: '-',
|
operator: '-',
|
||||||
title: 'Area',
|
title: 'Area',
|
||||||
|
@ -174,20 +174,24 @@ Ox.ListMap = function(options, self) {
|
||||||
width: 96
|
width: 96
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
format: 'date',
|
format: function(value) {
|
||||||
|
return value.replace('T', ' ').replace('Z', '');
|
||||||
|
},
|
||||||
id: 'created',
|
id: 'created',
|
||||||
operator: '-',
|
operator: '-',
|
||||||
title: 'Date Created',
|
title: 'Date Created',
|
||||||
visible: false,
|
visible: false,
|
||||||
width: 96,
|
width: 192,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
format: 'date',
|
format: function(value) {
|
||||||
|
return value.replace('T', ' ').replace('Z', '');
|
||||||
|
},
|
||||||
id: 'modified',
|
id: 'modified',
|
||||||
operator: '-',
|
operator: '-',
|
||||||
title: 'Date Modified',
|
title: 'Date Modified',
|
||||||
visible: false,
|
visible: false,
|
||||||
width: 96,
|
width: 192,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
@ -346,7 +350,7 @@ Ox.ListMap = function(options, self) {
|
||||||
self.options.places, self.selectedPlace
|
self.options.places, self.selectedPlace
|
||||||
).name = data.value;
|
).name = data.value;
|
||||||
} else {
|
} else {
|
||||||
editPlace(['name']);
|
!isResult && editPlace(['name']);
|
||||||
}
|
}
|
||||||
self.$map.value(self.selectedPlace, 'name', data.value);
|
self.$map.value(self.selectedPlace, 'name', data.value);
|
||||||
}
|
}
|
||||||
|
@ -374,7 +378,7 @@ Ox.ListMap = function(options, self) {
|
||||||
self.$list.value(self.selectedPlace, 'countryCode', countryCode);
|
self.$list.value(self.selectedPlace, 'countryCode', countryCode);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
editPlace(['countryCode', 'geoname']);
|
!isResult && editPlace(['countryCode', 'geoname']);
|
||||||
}
|
}
|
||||||
self.$map.value(self.selectedPlace, 'countryCode', countryCode);
|
self.$map.value(self.selectedPlace, 'countryCode', countryCode);
|
||||||
self.$map.value(self.selectedPlace, 'geoname', geoname);
|
self.$map.value(self.selectedPlace, 'geoname', geoname);
|
||||||
|
@ -392,10 +396,11 @@ Ox.ListMap = function(options, self) {
|
||||||
width: 240
|
width: 240
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
var isResult = self.selectedPlace[0] == '_';
|
||||||
if (!self.isAsync) {
|
if (!self.isAsync) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
editPlace(['alternativeNames'])
|
!isResult && editPlace(['alternativeNames'])
|
||||||
}
|
}
|
||||||
self.$map.value(self.selectedPlace, 'alternativeNames', data.value);
|
self.$map.value(self.selectedPlace, 'alternativeNames', data.value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue