From df9daf70a287dc6f30f6c47012ea4152a99af22b Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 19 Jul 2013 12:11:42 -0400 Subject: [PATCH] Fix number of topic suggestions (imported from commit 08096cc0e27054dd11f394d5b642b72ec8724b1b) --- zephyr/static/js/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index 2a3ec5f785..dc1ef21296 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -240,6 +240,8 @@ function get_topic_suggestions(query, query_operators, max_num) { }); } + topics = topics.slice(0, max_num); + // Just use alphabetical order. While recency and read/unreadness of // subjects do matter in some contexts, you can get that from the left sidebar, // and I'm leaning toward high scannability for autocompletion. I also don't @@ -294,7 +296,7 @@ exports.initialize = function () { return obj.search_string; }); }, - items: 20, + items: 50, highlighter: function (item) { var obj = search_object[item]; return obj.description;