Fix number of topic suggestions

(imported from commit 08096cc0e27054dd11f394d5b642b72ec8724b1b)
This commit is contained in:
Steve Howell 2013-07-19 12:11:42 -04:00
parent 7b48c46037
commit df9daf70a2
1 changed files with 3 additions and 1 deletions

View File

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