forked from 0x2620/pandora
use autocompleteDocuments for collections
This commit is contained in:
parent
545e1ba57d
commit
b9b109a2c8
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ pandora.ui.filterForm = function(options) {
|
|||
});
|
||||
function autocompleteFunction(key) {
|
||||
return key.autocomplete ? function(value, callback) {
|
||||
pandora.api.autocomplete({
|
||||
pandora.api[
|
||||
pandora.user.ui.sections == 'documents'
|
||||
? 'autocompleteDocuments'
|
||||
: 'autocomplete'
|
||||
]({
|
||||
key: key.id,
|
||||
query: {
|
||||
conditions: [],
|
||||
|
|
Loading…
Reference in a new issue