From 35c3488bbea2666251cf51e9a96e0f7a6b4ec35a Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 22 Jul 2013 18:01:27 -0400 Subject: [PATCH] Suggest a max of 10 topics in search (imported from commit 10a70d20edf4f0fe74a1597f46c50e4445cf3da3) --- zephyr/static/js/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index 0f1913a494..29cc5101a1 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -311,6 +311,8 @@ function get_topic_suggestions(query, query_operators) { return topic.subject; // "subject" is just the name of the topic }); + topics = topics.slice(0, 10); + if (guess !== '') { topics = $.grep(topics, function (topic) { // Don't suggest a topic if the user has already typed out