mirror of https://github.com/zulip/zulip.git
Fix number of topic suggestions
(imported from commit 08096cc0e27054dd11f394d5b642b72ec8724b1b)
This commit is contained in:
parent
7b48c46037
commit
df9daf70a2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue