chore(ngdocs): change minimum search length requirement

This commit is contained in:
Matias Niemelä 2013-06-18 09:40:13 -04:00
parent f6be59c1b9
commit bf7ec4bbb1

View file

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