Suggest a max of 10 topics in search

(imported from commit 10a70d20edf4f0fe74a1597f46c50e4445cf3da3)
This commit is contained in:
Steve Howell 2013-07-22 18:01:27 -04:00
parent ce4393ef0f
commit 35c3488bbe
1 changed files with 2 additions and 0 deletions

View File

@ -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