diff options
| author | Matias Niemelä | 2013-07-26 14:53:05 -0400 | 
|---|---|---|
| committer | Misko Hevery | 2013-07-26 23:49:54 -0700 | 
| commit | 658bcf96b9ab19286ad1bc18f4d5268287dbbcd6 (patch) | |
| tree | c230ed1a8c81222eca20665cb277cfaa8877d268 /docs/src/templates | |
| parent | e31104fa6c9e5efd93ac69cd70c70cffaf200843 (diff) | |
| download | angular.js-658bcf96b9ab19286ad1bc18f4d5268287dbbcd6.tar.bz2 | |
chore(ngdocs): fix docs search to properly hide the X button when collapsed
Diffstat (limited to 'docs/src/templates')
| -rw-r--r-- | docs/src/templates/css/docs.css | 6 | ||||
| -rw-r--r-- | docs/src/templates/js/docs.js | 2 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/docs/src/templates/css/docs.css b/docs/src/templates/css/docs.css index 6b1e6527..9a4ccfb0 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -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; -}
\ No newline at end of file +} diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index 05b09571..1413a0de 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -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 { | 
