mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(ngdocs): change minimum search length requirement
This commit is contained in:
parent
f6be59c1b9
commit
bf7ec4bbb1
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu
|
|||
}
|
||||
|
||||
$scope.search = function(q) {
|
||||
var MIN_SEARCH_LENGTH = 4;
|
||||
var MIN_SEARCH_LENGTH = 3;
|
||||
if(q.length >= MIN_SEARCH_LENGTH) {
|
||||
var results = docsSearch(q);
|
||||
var totalSections = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue