forked from 0x2620/pandora
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) {
|
function autocompleteFunction(key) {
|
||||||
return key.autocomplete ? function(value, callback) {
|
return key.autocomplete ? function(value, callback) {
|
||||||
pandora.api.autocomplete({
|
pandora.api.autocompleteDocuments({
|
||||||
key: key.id,
|
key: key.id,
|
||||||
query: {
|
query: {
|
||||||
conditions: [],
|
conditions: [],
|
||||||
|
|
|
@ -73,11 +73,7 @@ pandora.ui.filterForm = function(options) {
|
||||||
});
|
});
|
||||||
function autocompleteFunction(key) {
|
function autocompleteFunction(key) {
|
||||||
return key.autocomplete ? function(value, callback) {
|
return key.autocomplete ? function(value, callback) {
|
||||||
pandora.api[
|
pandora.api.autocomplete({
|
||||||
pandora.user.ui.section == 'documents'
|
|
||||||
? 'autocompleteDocuments'
|
|
||||||
: 'autocomplete'
|
|
||||||
]({
|
|
||||||
key: key.id,
|
key: key.id,
|
||||||
query: {
|
query: {
|
||||||
conditions: [],
|
conditions: [],
|
||||||
|
|
Loading…
Reference in a new issue