really use autocompleteDocuments for collections
This commit is contained in:
parent
d2eeadf860
commit
30f025f13f
2 changed files with 2 additions and 6 deletions
|
@ -72,7 +72,7 @@ pandora.ui.documentFilterForm = function(options) {
|
|||
});
|
||||
function autocompleteFunction(key) {
|
||||
return key.autocomplete ? function(value, callback) {
|
||||
pandora.api.autocomplete({
|
||||
pandora.api.autocompleteDocuments({
|
||||
key: key.id,
|
||||
query: {
|
||||
conditions: [],
|
||||
|
|
|
@ -73,11 +73,7 @@ pandora.ui.filterForm = function(options) {
|
|||
});
|
||||
function autocompleteFunction(key) {
|
||||
return key.autocomplete ? function(value, callback) {
|
||||
pandora.api[
|
||||
pandora.user.ui.section == 'documents'
|
||||
? 'autocompleteDocuments'
|
||||
: 'autocomplete'
|
||||
]({
|
||||
pandora.api.autocomplete({
|
||||
key: key.id,
|
||||
query: {
|
||||
conditions: [],
|
||||
|
|
Loading…
Reference in a new issue