Skip to content

Commit 291c54b

Browse files
committed
Show 30results, and allow scrolling
Also hacked the matcher a bit, allow matching without underscore e.g. "strpad" now matches "str_pad"
1 parent 905f4bd commit 291c54b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

js/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ $(document).ready(function() {
273273
// Search box autocomplete.
274274
jQuery("#topsearch .search-query").search({
275275
language: getLanguage(),
276-
limit: 3
276+
limit: 30
277277
});
278278

279279
/* {{{ Negative user notes fade-out */

js/search.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
var element = this;
119119

120120
options.language = options.language || "en";
121-
options.limit = options.limit || 10;
121+
options.limit = options.limit || 30;
122122

123123
/**
124124
* Utility function to check if the user's browser supports local
@@ -177,6 +177,10 @@
177177
var tokens = [item[0]];
178178
var type = null;
179179

180+
if (item[0].indexOf("_") != -1) {
181+
tokens.push(item[0].replace("_", ""));
182+
}
183+
180184
if (item[1].match(/^function\./)) {
181185
type = "function";
182186
} else if (item[0].indexOf("::") != -1) {

styles/theme-base.css

+2
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,8 @@ fieldset {
11041104

11051105
.tt-suggestions {
11061106
color: #ccc;
1107+
overflow: scroll;
1108+
max-height: 210px;
11071109
}
11081110

11091111
.tt-dropdown-menu .search {

0 commit comments

Comments
 (0)