mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 22:37:28 +08:00
docs(search): set minimum length to 2
With the minimum search length set to 3, it was not possible to search for `$q`. Changing this to 2 fixes that without really upsetting the search display, since we only display the first 40 API and 14 non-API items anyway. Closes #3078
This commit is contained in:
@@ -8,7 +8,7 @@ angular.module('search', [])
|
||||
}
|
||||
|
||||
$scope.search = function(q) {
|
||||
var MIN_SEARCH_LENGTH = 3;
|
||||
var MIN_SEARCH_LENGTH = 2;
|
||||
if(q.length >= MIN_SEARCH_LENGTH) {
|
||||
var results = docsSearch(q);
|
||||
var totalAreas = 0;
|
||||
|
||||
Reference in New Issue
Block a user