1
0
Fork 0
forked from 0x2620/oxjs

misc minor changes

This commit is contained in:
rolux 2012-07-04 11:57:27 +02:00
commit 459755e51f
3 changed files with 11 additions and 19 deletions

View file

@ -127,23 +127,15 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() {
`region` or `continent`.
*/
query: {
conditions: data.value ? [
{
key: 'name',
conditions: [
'name', 'region', 'continent'
].map(function(key) {
return {
key: key,
operator: '=',
value: data.value
},
{
key: 'region',
operator: '=',
value: data.value
},
{
key: 'continent',
operator: '=',
value: data.value
}
] : [],
};
}),
operator: '|'
}
});