From b9b109a2c88c2f22a3b13533680183a6787c6d39 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 16 May 2020 10:43:45 +0200 Subject: [PATCH] use autocompleteDocuments for collections --- static/js/filterForm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/filterForm.js b/static/js/filterForm.js index 2240876b..53305293 100644 --- a/static/js/filterForm.js +++ b/static/js/filterForm.js @@ -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: [],