add new operator &: {key: 'id', operator: '&', value: ['a', 'b']
This commit is contained in:
parent
c0ce0a556a
commit
5073fc1c52
2 changed files with 15 additions and 10 deletions
|
|
@ -29,14 +29,12 @@ oml.ui.statusbar = function() {
|
|||
if (ui.listSelection.length) {
|
||||
oml.api.find({
|
||||
query: {
|
||||
conditions: ui.listSelection.map(function(id) {
|
||||
return {
|
||||
conditions: [{
|
||||
key: 'id',
|
||||
operator: '==',
|
||||
value: id
|
||||
};
|
||||
}),
|
||||
operator: '|'
|
||||
operator: '&',
|
||||
value: ui.listSelection
|
||||
}],
|
||||
operator: '&'
|
||||
}
|
||||
}, function(result) {
|
||||
that.set('selected', result.data);
|
||||
|
|
@ -66,4 +64,4 @@ oml.ui.statusbar = function() {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue