fix autocomplete scope
This commit is contained in:
parent
c85ec239a2
commit
b71b35a418
1 changed files with 8 additions and 3 deletions
|
@ -134,15 +134,20 @@ oml.ui.findElement = function() {
|
||||||
: that.value()[1],
|
: that.value()[1],
|
||||||
findKey = Ox.getObjectById(oml.config.findKeys, key);
|
findKey = Ox.getObjectById(oml.config.findKeys, key);
|
||||||
return findKey && findKey.autocomplete ? function(value, callback) {
|
return findKey && findKey.autocomplete ? function(value, callback) {
|
||||||
|
var findIn = oml.$ui.findInSelect.options('value'),
|
||||||
|
list = ui._list && findIn == 'list'
|
||||||
|
? ui._list
|
||||||
|
: findIn == 'user'
|
||||||
|
? ':'
|
||||||
|
: void 0;
|
||||||
oml.api.autocomplete({
|
oml.api.autocomplete({
|
||||||
key: key,
|
key: key,
|
||||||
query: {
|
query: {
|
||||||
conditions: ui._list
|
conditions: list
|
||||||
&& oml.$ui.findInSelect.value() == 'list'
|
|
||||||
? [{
|
? [{
|
||||||
key: 'list',
|
key: 'list',
|
||||||
operator: '==',
|
operator: '==',
|
||||||
value: ui._list
|
value: list
|
||||||
}]
|
}]
|
||||||
: [],
|
: [],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
|
|
Loading…
Reference in a new issue