mirror of https://github.com/zulip/zulip.git
Suggest a max of 10 topics in search
(imported from commit 10a70d20edf4f0fe74a1597f46c50e4445cf3da3)
This commit is contained in:
parent
ce4393ef0f
commit
35c3488bbe
|
@ -311,6 +311,8 @@ function get_topic_suggestions(query, query_operators) {
|
||||||
return topic.subject; // "subject" is just the name of the topic
|
return topic.subject; // "subject" is just the name of the topic
|
||||||
});
|
});
|
||||||
|
|
||||||
|
topics = topics.slice(0, 10);
|
||||||
|
|
||||||
if (guess !== '') {
|
if (guess !== '') {
|
||||||
topics = $.grep(topics, function (topic) {
|
topics = $.grep(topics, function (topic) {
|
||||||
// Don't suggest a topic if the user has already typed out
|
// Don't suggest a topic if the user has already typed out
|
||||||
|
|
Loading…
Reference in New Issue