From 30f025f13f3b0785e17b21c80f9e1f0071ffa823 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 16 May 2020 10:51:37 +0200 Subject: [PATCH] really use autocompleteDocuments for collections --- static/js/documentFilterForm.js | 2 +- static/js/filterForm.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/static/js/documentFilterForm.js b/static/js/documentFilterForm.js index a1fb25c9d..a7353eb0e 100644 --- a/static/js/documentFilterForm.js +++ b/static/js/documentFilterForm.js @@ -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: [], diff --git a/static/js/filterForm.js b/static/js/filterForm.js index 4413869fc..2240876b8 100644 --- a/static/js/filterForm.js +++ b/static/js/filterForm.js @@ -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: [],