forked from 0x2620/oxjs
misc minor changes
This commit is contained in:
parent
a4ce29bff7
commit
459755e51f
3 changed files with 11 additions and 19 deletions
|
|
@ -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: '|'
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue