chore(ngdocs): fix docs search to properly hide the X button when collapsed

This commit is contained in:
Matias Niemelä 2013-07-26 14:53:05 -04:00 committed by Misko Hevery
parent e31104fa6c
commit 658bcf96b9
2 changed files with 6 additions and 2 deletions

View file

@ -268,6 +268,10 @@ ul.events > li > h3 {
width:100%;
}
.search-results.ng-hide {
display:none;
}
.search-results > .search-group {
vertical-align:top;
padding:10px 0;
@ -484,4 +488,4 @@ pre ol li {
font-size: 16px;
word-break: normal;
word-wrap: normal;
}
}

View file

@ -79,8 +79,8 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu
}
if(totalSections > 0) {
$scope.colClassName = 'cols-' + totalSections;
$scope.hasResults = true;
}
$scope.hasResults = totalSections > 0;
$scope.results = results;
}
else {